Improve service worker scope
This commit is contained in:
parent
3eeb808482
commit
559f6b007a
2 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue