aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/sw/client.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client-web/source/sw/client.ts')
-rw-r--r--client-web/source/sw/client.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client-web/source/sw/client.ts b/client-web/source/sw/client.ts
index 431e601..83d7267 100644
--- a/client-web/source/sw/client.ts
+++ b/client-web/source/sw/client.ts
@@ -42,7 +42,7 @@ export async function update_serviceworker() {
const regs = await globalThis.navigator.serviceWorker.getRegistrations()
for (const r of regs) await r.unregister()
log("sw", "cleared all workers")
- setTimeout(() => window.location.reload(), 500)
+ setTimeout(() => globalThis.location.reload(), 500)
}
function start_handler() {