mirror of
https://github.com/dergigi/boris.git
synced 2026-02-02 13:44:35 +01:00
1. Check for existing registrations first to avoid duplicate registrations 2. In dev mode, check if SW file exists before attempting registration 3. Handle registration errors gracefully - don't crash if SW unavailable in dev 4. Use getRegistrations() instead of getRegistration() for better coverage 5. Add more detailed error logging for debugging This prevents the 'Failed to register ServiceWorker' errors when the SW file isn't available in development mode.