From b0b79966e957bd5e4fc014978dbf7e9dbebeac61 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Mon, 16 Mar 2026 22:11:34 +0000 Subject: fix: prefix SW registration path with BASE_PATH The app is served at /claudomator/ so the SW and scope must use BASE_PATH + '/api/push/sw.js' and BASE_PATH + '/' respectively. Co-Authored-By: Claude Sonnet 4.6 --- web/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/app.js') diff --git a/web/app.js b/web/app.js index dca4472..929b45d 100644 --- a/web/app.js +++ b/web/app.js @@ -2607,7 +2607,7 @@ function renderStatsPanel(tasks, executions) { async function registerServiceWorker() { if (!('serviceWorker' in navigator) || !('PushManager' in window)) return null; - return navigator.serviceWorker.register('/api/push/sw.js', { scope: '/' }); + return navigator.serviceWorker.register(BASE_PATH + '/api/push/sw.js', { scope: BASE_PATH + '/' }); } function urlBase64ToUint8Array(base64String) { -- cgit v1.2.3