mirror of https://github.com/nextcloud/bookmarks
Fix routes to files
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
parent
6d2eca0c03
commit
337fb0ec66
|
@ -34,7 +34,7 @@ const BookmarksApp = (global.Bookmarks = new Vue({
|
|||
}))
|
||||
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register(generateUrl('/apps/bookmarks/service-worker.js', {}, {
|
||||
navigator.serviceWorker.register(generateUrl('/apps/bookmarks/bookmarks-service-worker.js', {}, {
|
||||
noRewrite: true,
|
||||
}), {
|
||||
scope: generateUrl('/apps/bookmarks'),
|
||||
|
@ -45,7 +45,7 @@ if ('serviceWorker' in navigator) {
|
|||
.catch(er => console.error(er))
|
||||
|
||||
window.caches.open('js').then(async cache => {
|
||||
const url = generateUrl('/apps/bookmarks/js/bookmarks.main.js')
|
||||
const url = generateUrl('/apps/bookmarks/js/bookmarks-main.js')
|
||||
cache.put(url, await fetch(url))
|
||||
})
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue