diff --git a/config/index.js b/config/index.js index 443c4a67..4a21e718 100644 --- a/config/index.js +++ b/config/index.js @@ -38,6 +38,11 @@ module.exports = { assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: { + '/manifest.json': { + target, + changeOrigin: true, + cookieDomainRewrite: 'localhost' + }, '/api': { target, changeOrigin: true, diff --git a/src/main.js b/src/main.js index e4a793f6..1fec81a2 100644 --- a/src/main.js +++ b/src/main.js @@ -51,6 +51,17 @@ const persistedStateOptions = { }; (async () => { + if ('serviceWorker' in navigator) { + // declaring scope manually + 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}`); + }); + } else { + console.error('Service workers are not supported.'); + } + let storageError = false const plugins = [pushNotifications] try { diff --git a/static/logo-512.png b/static/logo-512.png new file mode 100755 index 00000000..c8397e35 Binary files /dev/null and b/static/logo-512.png differ diff --git a/static/logo.svg b/static/logo.svg old mode 100644 new mode 100755 index 68e647e6..01ddbadb --- a/static/logo.svg +++ b/static/logo.svg @@ -1,71 +1,34 @@ - - - - - - image/svg+xml - - - - - - - - - - - - - + + + + + + + - + + + + + + + + + + \ No newline at end of file