aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/preferences/mod.ts
diff options
context:
space:
mode:
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("=")