Skip to content

Commit bafd5fc

Browse files
authored
feat: replace hardcoded localhost (#260)
Closes: #265
1 parent 0ddf89d commit bafd5fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/Bootstrap/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let config = JSON.parse(
1313
);
1414

1515
const returnWebsocketForEndpoint = (path) => () =>
16-
new WebSocket(`ws://localhost:8080${path}`);
16+
new WebSocket(`ws://${window.location.host}${path}`);
1717

1818
ReactDOM.render(
1919
<React.StrictMode>

0 commit comments

Comments
 (0)