mirror of https://github.com/nextcloud/photos
update service worker for correct scope
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
2cad0f85b7
commit
51cdc208ed
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue