From 57df92aba711b5651b2b59fe77b14d607479a847 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 23 Jan 2026 03:29:07 +0000 Subject: [PATCH] feat: add error handling for service worker unregistration Co-authored-by: hyoban <38493346+hyoban@users.noreply.github.com> --- web/app/components/provider/serwist.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/app/components/provider/serwist.tsx b/web/app/components/provider/serwist.tsx index 4f43c751c1..5cd7d63580 100644 --- a/web/app/components/provider/serwist.tsx +++ b/web/app/components/provider/serwist.tsx @@ -11,6 +11,10 @@ export function PWAProvider({ children }: { children: React.ReactNode }) { registrations.forEach((registration) => { registration.unregister() }) + }).catch((error) => { + // Silently fail if service worker unregistration fails + // This is a development-only optimization and shouldn't block the app + console.warn('Failed to unregister service workers:', error) }) } }, [])