aboutsummaryrefslogtreecommitdiff
path: root/test-client/main.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-22 12:19:01 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-23 19:28:31 +0200
commit0f7a1e3bddafc175f1084cc3c2b4e3d91426dbd9 (patch)
tree1cd11bc540287fbc490891cafdde24fea51b7d57 /test-client/main.ts
parent84ddc1c0ffb029c88ae108a180081380916eae39 (diff)
downloadhurrycurry-0f7a1e3bddafc175f1084cc3c2b4e3d91426dbd9.tar
hurrycurry-0f7a1e3bddafc175f1084cc3c2b4e3d91426dbd9.tar.bz2
hurrycurry-0f7a1e3bddafc175f1084cc3c2b4e3d91426dbd9.tar.zst
connect to same host
Diffstat (limited to 'test-client/main.ts')
-rw-r--r--test-client/main.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-client/main.ts b/test-client/main.ts
index 60a483d8..f6aa7e97 100644
--- a/test-client/main.ts
+++ b/test-client/main.ts
@@ -10,7 +10,7 @@ export let canvas: HTMLCanvasElement;
let ws: WebSocket;
document.addEventListener("DOMContentLoaded", () => {
const ws_uri = window.location.protocol.endsWith("s:")
- ? `wss://backend-${window.location.hostname}/`
+ ? `wss://${window.location.host}/`
: `ws://${window.location.hostname}:27032/`
ws = new WebSocket(ws_uri)
ws.onerror = console.error