diff --git a/src/js/register-service-worker.ts b/src/js/register-service-worker.ts index 3e61955..a18cd86 100644 --- a/src/js/register-service-worker.ts +++ b/src/js/register-service-worker.ts @@ -2,7 +2,7 @@ if ('serviceWorker' in navigator) { // Register a service worker hosted at the root of the // site using the default scope. try { - const registration = await navigator.serviceWorker.register('/service-worker.js') + const registration = await navigator.serviceWorker.register('./service-worker.js') console.log('Service worker registration succeeded:', registration) } catch (error) { console.error(`Service worker registration failed: ${error}`)