diff options
author | metamuffin <metamuffin@disroot.org> | 2024-11-25 20:59:54 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-11-25 20:59:54 +0100 |
commit | 440c12ac024e84f166eaa4115ef6715c39de2eea (patch) | |
tree | 11f4a32e3478d6babee7fb30349c47d7f7983168 /client-web/source/preferences | |
parent | 55f58e1d7017ef0038840e2a9d506cfaf85e8ea8 (diff) | |
download | keks-meet-440c12ac024e84f166eaa4115ef6715c39de2eea.tar keks-meet-440c12ac024e84f166eaa4115ef6715c39de2eea.tar.bz2 keks-meet-440c12ac024e84f166eaa4115ef6715c39de2eea.tar.zst |
replace window usage with globalThis
Diffstat (limited to 'client-web/source/preferences')
-rw-r--r-- | client-web/source/preferences/ui.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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") |