aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/preferences
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-09-08 15:29:20 +0200
committermetamuffin <metamuffin@disroot.org>2023-09-08 15:29:20 +0200
commit7c3864fac1ded20e8137cf637ea55693492cf1f6 (patch)
tree967a18e97bbfa5c933c1b71dd1e35cbbc31b4f12 /client-web/source/preferences
parent564a6f1e38af84ef857e25bb0266012b38d1fb1d (diff)
downloadkeks-meet-7c3864fac1ded20e8137cf637ea55693492cf1f6.tar
keks-meet-7c3864fac1ded20e8137cf637ea55693492cf1f6.tar.bz2
keks-meet-7c3864fac1ded20e8137cf637ea55693492cf1f6.tar.zst
watches edit ui
Diffstat (limited to 'client-web/source/preferences')
-rw-r--r--client-web/source/preferences/mod.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client-web/source/preferences/mod.ts b/client-web/source/preferences/mod.ts
index c4e502d..815afd9 100644
--- a/client-web/source/preferences/mod.ts
+++ b/client-web/source/preferences/mod.ts
@@ -91,12 +91,12 @@ 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] = window.location.hash.substring(1).split("?")
+ const [rsecret, param_str] = decodeURIComponent(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)
+ raw_params[key] = value
}
return { raw_params, rsecret }
}