From d2dc37aef909d4a1834396d0fc2b53c565935a3c Mon Sep 17 00:00:00 2001 From: mariomitte Date: Mon, 10 Aug 2026 07:53:09 +0200 Subject: [PATCH] fix: repair service-worker.js duplicate install listener causing script eval failure apply_patch previously duplicated the install event listener, causing a ServiceWorker script evaluation error on load. Deduplicate and hoist precacheShell() before the install listener. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- frontend/public/service-worker.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/public/service-worker.js b/frontend/public/service-worker.js index 6887f86..b0b599d 100644 --- a/frontend/public/service-worker.js +++ b/frontend/public/service-worker.js @@ -142,8 +142,6 @@ async function replayQueuedRequests() { } } -self.addEventListener('install', (event) => { -self.addEventListener('install', (event) => { async function precacheShell() { const cache = await caches.open(CACHE_NAME); await Promise.all(