From 4510d3d130ac7c7a57d739a252ff2e96b2cc1f38 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Fri, 2 Dec 2022 11:57:45 +0000 Subject: [PATCH] fix SW path --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index a7d9da83..1fec81a2 100644 --- a/src/main.js +++ b/src/main.js @@ -53,7 +53,7 @@ const persistedStateOptions = { (async () => { if ('serviceWorker' in navigator) { // declaring scope manually - navigator.serviceWorker.register('/sw.js', {scope: '/'}).then((registration) => { + navigator.serviceWorker.register('/sw-pleroma.js', {scope: '/'}).then((registration) => { console.log('Service worker registration succeeded:', registration); }, /*catch*/ (error) => { console.error(`Service worker registration failed: ${error}`);