aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/preferences/mod.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-03-22 14:27:25 +0100
committermetamuffin <metamuffin@disroot.org>2025-03-22 14:27:25 +0100
commit5d4cb7864dc3ca19669877def6c298eb96d19b16 (patch)
tree92444bfd31c9080e8c09aa7368e3f6cb4156ed35 /client-web/source/preferences/mod.ts
parent2f5d47d21dfc308c1b930cf45e13b34445d3a8e5 (diff)
downloadkeks-meet-5d4cb7864dc3ca19669877def6c298eb96d19b16.tar
keks-meet-5d4cb7864dc3ca19669877def6c298eb96d19b16.tar.bz2
keks-meet-5d4cb7864dc3ca19669877def6c298eb96d19b16.tar.zst
new translation system
Diffstat (limited to 'client-web/source/preferences/mod.ts')
-rw-r--r--client-web/source/preferences/mod.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/client-web/source/preferences/mod.ts b/client-web/source/preferences/mod.ts
index bbf9bfb..b7e048f 100644
--- a/client-web/source/preferences/mod.ts
+++ b/client-web/source/preferences/mod.ts
@@ -6,7 +6,6 @@
import { log } from "../logger.ts";
import { PREF_DECLS } from "./decl.ts";
-
export interface PrefDecl<T> {
default?: T,
type: T,
@@ -92,7 +91,7 @@ export function generate_section(): string {
export function load_params(): { raw_params: { [key: string]: string }, rsecret: string } {
const raw_params: Record<string, string> = {}
- const [rsecret, param_str] = decodeURIComponent(window.location.hash.substring(1)).split("?")
+ const [rsecret, param_str] = decodeURIComponent(globalThis.location.hash.substring(1)).split("?")
if (!param_str) return { rsecret, raw_params: {} }
for (const kv of param_str.split("&")) {
const [key, value] = kv.split("=")