diff options
Diffstat (limited to 'source/client/helper.ts')
-rw-r--r-- | source/client/helper.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/client/helper.ts b/source/client/helper.ts index 37da7b9..31e500a 100644 --- a/source/client/helper.ts +++ b/source/client/helper.ts @@ -4,7 +4,7 @@ import { parameters } from "./index.ts" export function get_query_params(): { [key: string]: string } { const q: { [key: string]: string } = {} - for (const kv of window.location.search.substring(1).split("&")) { + for (const kv of window.location.hash.substring(1).split("&")) { const [key, value] = kv.split("=") q[decodeURIComponent(key)] = decodeURIComponent(value) } @@ -41,4 +41,3 @@ export function parameter_string(name: string, def: string): string { if (!v) return def return v } - |