aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/preferences
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-01-17 22:28:35 +0100
committermetamuffin <metamuffin@disroot.org>2023-01-17 22:28:35 +0100
commitf85d40d8c6cc2f3b58d1e0ea7f0382db88fffd4e (patch)
tree29aa31d00ff246d3ab662e5350a4ae9563ac279a /client-web/source/preferences
parent6c8025c6dec52a26103186848510d72936f15603 (diff)
downloadkeks-meet-f85d40d8c6cc2f3b58d1e0ea7f0382db88fffd4e.tar
keks-meet-f85d40d8c6cc2f3b58d1e0ea7f0382db88fffd4e.tar.bz2
keks-meet-f85d40d8c6cc2f3b58d1e0ea7f0382db88fffd4e.tar.zst
refer to room name as secret instead
Diffstat (limited to 'client-web/source/preferences')
-rw-r--r--client-web/source/preferences/mod.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/client-web/source/preferences/mod.ts b/client-web/source/preferences/mod.ts
index 5de73eb..04fae2c 100644
--- a/client-web/source/preferences/mod.ts
+++ b/client-web/source/preferences/mod.ts
@@ -85,19 +85,19 @@ export function generate_section(): string {
PREFS_EXPLICIT[key as unknown as keyof typeof PREFS_EXPLICIT]
)))
}
- return load_params().rname + "?" + section.join("&")
+ return load_params().rsecret + "?" + section.join("&")
}
-export function load_params(): { raw_params: { [key: string]: string }, rname: string } {
+export function load_params(): { raw_params: { [key: string]: string }, rsecret: string } {
const raw_params: Record<string, string> = {}
- const [rname, param_str] = window.location.hash.substring(1).split("?")
- if (!param_str) return { rname, raw_params: {} }
+ const [rsecret, param_str] = window.location.hash.substring(1).split("?")
+ if (!param_str) return { rsecret, raw_params: {} }
for (const kv of param_str.split("&")) {
const [key, value] = kv.split("=")
if (key == "prototype") continue
raw_params[decodeURIComponent(key)] = decodeURIComponent(value)
}
- return { raw_params, rname }
+ return { raw_params, rsecret }
}
function get_param<T>(ty: string, key: string): T | undefined {