diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-16 22:11:34 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-16 22:11:34 +0000 |
| commit | b0b79966e957bd5e4fc014978dbf7e9dbebeac61 (patch) | |
| tree | f0bd8426b09d49bbbce81619aa1d7fed0243ab60 /web/app.js | |
| parent | 1b6b27357c817359574605b854f6468917da314d (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/app.js')
| -rw-r--r-- | web/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |
