From 5d4cb7864dc3ca19669877def6c298eb96d19b16 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 22 Mar 2025 14:27:25 +0100 Subject: new translation system --- client-web/source/preferences/mod.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'client-web/source/preferences/mod.ts') 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 { 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 = {} - 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("=") -- cgit v1.2.3-70-g09d2