Unverified Commit bad61361 authored by Hubert Denkmair's avatar Hubert Denkmair Committed by GitHub

Merge pull request #1 from Draradech/patch-1

Allow running on other ports than default
parents aeb9cf54 a243ff07
......@@ -65,7 +65,7 @@ Game.prototype.ConnectWebsocket = function()
Game.prototype.GetWebsocketURL = function()
{
return (window.location.protocol == "https:" ? "wss://" : "ws://") + window.location.hostname + "/websocket";
return (window.location.protocol == "https:" ? "wss://" : "ws://") + window.location.host + "/websocket";
};
Game.prototype.SetViewerKey = function(key)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment