Skip to content

Commit

Permalink
Testing another solution to issue lol
Browse files Browse the repository at this point in the history
  • Loading branch information
NotVeridion committed Apr 23, 2024
1 parent c15cc66 commit 79b5655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ <h1>LEADERBOARD</h1>
var connection = null;
var serverUrl;

serverUrl = "ws://" + window.location.hostname +":"+ (parseInt(location.port) + 100);
serverUrl = "ws://" + window.location.hostname +":"+ (parseInt(window.location.port) + 100);
connection = new WebSocket(serverUrl);

connection.onopen = function (evt) {
Expand Down

0 comments on commit 79b5655

Please sign in to comment.