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 9725091..37da7b9 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.substr(1).split("&")) { + for (const kv of window.location.search.substring(1).split("&")) { const [key, value] = kv.split("=") q[decodeURIComponent(key)] = decodeURIComponent(value) } @@ -16,7 +16,6 @@ export function hex_id(len = 8): string { return Math.floor(Math.random() * 16 ** len).toString(16).padStart(len, "0") } - export function parameter_bool(name: string, def: boolean): boolean { const v = parameters[name] if (!v) return def |