fix sw location

This commit is contained in:
chris 2025-07-31 10:54:47 -04:00
parent 236de3fb16
commit 6375d1a558

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('/sw.js')
navigator.serviceWorker.register('/public/sw.js')
.then(registration => {
console.log('✅ ServiceWorker registration successful with scope: ', registration.scope);
})