Skip to content

Commit

Permalink
I really need to add a dev switch or something...
Browse files Browse the repository at this point in the history
  • Loading branch information
creesch committed Dec 31, 2024
1 parent 06f5846 commit b5d5ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/resources/web/js/chat.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ function updateWebsocketConnectionStatus(connectionStatus) {
}

function connect() {
ws = new WebSocket(`ws://localhost:8080/chat`);
ws = new WebSocket(`ws://${location.host}/chat`);

ws.onopen = function () {
console.log('Connected to websocket server');
Expand Down

0 comments on commit b5d5ccb

Please sign in to comment.