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