From 440c12ac024e84f166eaa4115ef6715c39de2eea Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 25 Nov 2024 20:59:54 +0100 Subject: replace window usage with globalThis --- client-web/source/preferences/ui.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client-web/source/preferences/ui.ts') diff --git a/client-web/source/preferences/ui.ts b/client-web/source/preferences/ui.ts index c710f54..0f26c14 100644 --- a/client-web/source/preferences/ui.ts +++ b/client-web/source/preferences/ui.ts @@ -97,7 +97,7 @@ export function ui_preferences(): HTMLElement { ) const reset = e("div", {}, e("span", {}, PO.clear_prefs), - e("button", { onclick: () => { if (confirm("really clear all preferences?")) { localStorage.clear(); window.location.reload() } } }, "RESET"), + e("button", { onclick: () => { if (confirm("really clear all preferences?")) { localStorage.clear(); globalThis.location.reload() } } }, "RESET"), ) const table = document.createElement("table") -- cgit v1.2.3-70-g09d2