From bafd5fc86017096453d4a3578e3e1f65c750b92e Mon Sep 17 00:00:00 2001 From: Roger Miret Date: Wed, 16 Mar 2022 15:56:55 +0100 Subject: [PATCH] feat: replace hardcoded localhost (#260) Closes: #265 --- ui/src/Bootstrap/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/Bootstrap/index.js b/ui/src/Bootstrap/index.js index b46aa7cd..05c522fd 100644 --- a/ui/src/Bootstrap/index.js +++ b/ui/src/Bootstrap/index.js @@ -13,7 +13,7 @@ let config = JSON.parse( ); const returnWebsocketForEndpoint = (path) => () => - new WebSocket(`ws://localhost:8080${path}`); + new WebSocket(`ws://${window.location.host}${path}`); ReactDOM.render(