diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx index 5420a4cd5..6a33c5dc3 100644 --- a/frontend/src/index.tsx +++ b/frontend/src/index.tsx @@ -12,7 +12,7 @@ if (process.env.REACT_APP_GOOGLE_ANALYTICS) { if ('serviceWorker' in navigator) { navigator.serviceWorker - .register('/firebase-messaging-sw.js') + .register('./firebase-messaging-sw.js') .then((registration) => { console.log('Service Worker registered with scope:', registration.scope); })