fix sw location

This commit is contained in:
chris 2025-07-31 10:54:47 -04:00
parent b1a15caf72
commit 75942f600b

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);
})