From 01a5d21e696718c488fb3d7954786058ad9f43cb Mon Sep 17 00:00:00 2001 From: bskjon Date: Tue, 18 Mar 2025 02:01:11 +0100 Subject: [PATCH] Minifix --- apps/ui/web/src/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/ui/web/src/index.tsx b/apps/ui/web/src/index.tsx index a09c4bd9..8952b503 100644 --- a/apps/ui/web/src/index.tsx +++ b/apps/ui/web/src/index.tsx @@ -15,10 +15,12 @@ const root = ReactDOM.createRoot( const wsUrl = () => { const protocol = "ws" // window.location.protocol; const host = window.location.host; + const wsUrl = `ws://${host}/ws`; + console.log("WsUrl", wsUrl) if (window.location.href.startsWith("http://localhost:3000")) { return "ws://localhost:8080/ws"; } else { - return `${protocol}//${host}/ws`; + return wsUrl; } } root.render(