Improve service worker scope

This commit is contained in:
grandeljay 2022-07-08 11:09:15 +02:00
parent 3eeb808482
commit 559f6b007a
2 changed files with 1 additions and 1 deletions

View file

@ -4,7 +4,7 @@
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker
.register('/src/assets/js/service-worker.js')
.register('/service-worker.js')
.then(res => console.log('wishthis service worker registered'))
.catch(err => console.log('wishthis service worker not registered', err))
})