mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-12 19:44:53 +00:00
fix SW path
This commit is contained in:
parent
e132814478
commit
f8f5e1c89b
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ const persistedStateOptions = {
|
||||||
(async () => {
|
(async () => {
|
||||||
if ('serviceWorker' in navigator) {
|
if ('serviceWorker' in navigator) {
|
||||||
// declaring scope manually
|
// 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);
|
console.log('Service worker registration succeeded:', registration);
|
||||||
}, /*catch*/ (error) => {
|
}, /*catch*/ (error) => {
|
||||||
console.error(`Service worker registration failed: ${error}`);
|
console.error(`Service worker registration failed: ${error}`);
|
||||||
|
|
Loading…
Reference in a new issue