summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-16 22:11:34 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-16 22:11:34 +0000
commitb0b79966e957bd5e4fc014978dbf7e9dbebeac61 (patch)
treef0bd8426b09d49bbbce81619aa1d7fed0243ab60 /web
parent1b6b27357c817359574605b854f6468917da314d (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'web')
-rw-r--r--web/app.js2
1 files changed, 1 insertions, 1 deletions
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) {