Disable service worker to fix console errors
The PWA service worker is causing errors in production. Disabled for now. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
39a93d64e2
commit
bc08828c18
1 changed files with 2 additions and 1 deletions
|
|
@ -167,7 +167,8 @@ export default function HomePage() {
|
|||
setPendingCount(queue.length);
|
||||
const handleOnline = () => processOfflineQueue();
|
||||
window.addEventListener("online", handleOnline);
|
||||
if ("serviceWorker" in navigator) navigator.serviceWorker.register("/sw.js").catch(console.error);
|
||||
// Service worker disabled - causes errors in production
|
||||
// if ("serviceWorker" in navigator) navigator.serviceWorker.register("/sw.js").catch(console.error);
|
||||
return () => window.removeEventListener("online", handleOnline);
|
||||
}, []);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue