From fbf376e5e7ec04cedf14328b20b87fb537b00d9d Mon Sep 17 00:00:00 2001 From: Timur Atalay Date: Fri, 3 Nov 2023 10:55:37 -0700 Subject: [PATCH] Fix `Service worker registration failed` --- src/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/app.js b/src/js/app.js index abcf729..31affad 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -43,7 +43,7 @@ if (isElectron) { } else { // Register service worker if ('serviceWorker' in navigator) { - navigator.serviceWorker.register('./sw').catch(() => { + navigator.serviceWorker.register('./sw.js').catch(() => { console.log('Service worker registration failed') }) }