update service worker for correct scope

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-09-26 14:11:58 +02:00 committed by Simon L. (Rebase PR Action)
parent 2cad0f85b7
commit 51cdc208ed
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ export default {
navigator.serviceWorker.register(generateUrl('/apps/photos/service-worker.js', {}, {
noRewrite: true,
}), {
scope: '/',
scope: generateUrl('/apps/photos'),
}).then(registration => {
console.debug('SW registered: ', registration)
}).catch(registrationError => {