fix(main/serviceworker path)

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2023-12-10 17:49:17 +01:00
parent c23ccaa41a
commit 9ce3a6a9bc
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import store from './store/index.js'
import AppGlobal from './mixins/AppGlobal.js'
import DropTarget from './directives/drop-target.js'
import { subscribe } from '@nextcloud/event-bus'
import { generateUrl } from '@nextcloud/router'
import { generateFilePath, generateUrl } from '@nextcloud/router'
Vue.mixin(AppGlobal)
Vue.directive('tooltip', Tooltip)
@ -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 = generateFilePath('bookmarks', '', 'js/bookmarks-main.js')
cache.put(url, await fetch(url))
})
} else {