diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-06-22 12:19:01 +0200 | 
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:28:31 +0200 | 
| commit | 0f7a1e3bddafc175f1084cc3c2b4e3d91426dbd9 (patch) | |
| tree | 1cd11bc540287fbc490891cafdde24fea51b7d57 | |
| parent | 84ddc1c0ffb029c88ae108a180081380916eae39 (diff) | |
| download | hurrycurry-0f7a1e3bddafc175f1084cc3c2b4e3d91426dbd9.tar hurrycurry-0f7a1e3bddafc175f1084cc3c2b4e3d91426dbd9.tar.bz2 hurrycurry-0f7a1e3bddafc175f1084cc3c2b4e3d91426dbd9.tar.zst | |
connect to same host
| -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 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 | 
