Skip to content

Commit

Permalink
feat: replace hardcoded localhost (#260)
Browse files Browse the repository at this point in the history
Closes: #265
  • Loading branch information
rogerxaic authored Mar 16, 2022
1 parent 0ddf89d commit bafd5fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/Bootstrap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
<React.StrictMode>
Expand Down

0 comments on commit bafd5fc

Please sign in to comment.