redo sw,js location

This commit is contained in:
chris 2025-07-31 10:58:55 -04:00
parent 6375d1a558
commit 1bbd3b2be7

View File

@ -253,7 +253,7 @@
// Add the registration code here, inside the same script
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/public/sw.js')
navigator.serviceWorker.register('/sw.js')
.then(registration => {
console.log('✅ ServiceWorker registration successful with scope: ', registration.scope);
})