redo sw,js location
This commit is contained in:
parent
6375d1a558
commit
1bbd3b2be7
@ -253,7 +253,7 @@
|
|||||||
// Add the registration code here, inside the same script
|
// Add the registration code here, inside the same script
|
||||||
if ('serviceWorker' in navigator) {
|
if ('serviceWorker' in navigator) {
|
||||||
window.addEventListener('load', () => {
|
window.addEventListener('load', () => {
|
||||||
navigator.serviceWorker.register('/public/sw.js')
|
navigator.serviceWorker.register('/sw.js')
|
||||||
.then(registration => {
|
.then(registration => {
|
||||||
console.log('✅ ServiceWorker registration successful with scope: ', registration.scope);
|
console.log('✅ ServiceWorker registration successful with scope: ', registration.scope);
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user