forked from AkkomaGang/akkoma-fe
Sync develop with 2023.02 stable branch #6
1 changed files with 1 additions and 1 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Reference in a new issue