diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-17 22:34:49 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-17 22:34:49 +0200 |
commit | c55662a90d6bbfcb4001df26705231cb7d0a4ba2 (patch) | |
tree | dc1132c5ced33e158866d42995b23d49cd36fa55 /test-client/main.ts | |
parent | 931222e85a070762f20819341252254d5f5f3a5c (diff) | |
download | hurrycurry-c55662a90d6bbfcb4001df26705231cb7d0a4ba2.tar hurrycurry-c55662a90d6bbfcb4001df26705231cb7d0a4ba2.tar.bz2 hurrycurry-c55662a90d6bbfcb4001df26705231cb7d0a4ba2.tar.zst |
tc: lang from url
Diffstat (limited to 'test-client/main.ts')
-rw-r--r-- | test-client/main.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-client/main.ts b/test-client/main.ts index 9ec4ac5e..1b2d7db3 100644 --- a/test-client/main.ts +++ b/test-client/main.ts @@ -37,7 +37,7 @@ export let ctx: CanvasRenderingContext2D; export let canvas: HTMLCanvasElement; let ws: WebSocket; document.addEventListener("DOMContentLoaded", async () => { - await init_locale(navigator.language.split("-")[0] ?? "en") + await init_locale() const ws_uri = window.location.protocol.endsWith("s:") ? `wss://${window.location.host}/` : `ws://${window.location.hostname}:27032/` |