pwa config #242

Merged
floatingghost merged 4 commits from pwa into develop 2022-12-02 12:01:43 +00:00
Showing only changes of commit f8f5e1c89b - Show all commits

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