mirror of https://github.com/nextcloud/bookmarks
add a scope to the service-worker
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
00b4e735d6
commit
84e9418c8a
|
@ -36,7 +36,9 @@ const BookmarksApp = (global.Bookmarks = new Vue({
|
|||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register(generateUrl('/apps/bookmarks/service-worker.js', {}, {
|
||||
noRewrite: true,
|
||||
}))
|
||||
}), {
|
||||
scope: generateUrl('/apps/bookmarks'),
|
||||
})
|
||||
.then(() => {
|
||||
console.info('ServiceWorker registered')
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue