fix SW path

This commit is contained in:
FloatingGhost 2022-12-02 11:57:45 +00:00 committed by hynet-mel
parent ec0164452c
commit 4510d3d130

View file

@ -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}`);