From c55662a90d6bbfcb4001df26705231cb7d0a4ba2 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 17 Sep 2024 22:34:49 +0200 Subject: tc: lang from url --- test-client/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-client/main.ts') 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/` -- cgit v1.2.3-70-g09d2