Unverified Commit a243ff07 authored by Manuel Kasten's avatar Manuel Kasten Committed by GitHub

Allow running on other ports than default

parent aeb9cf54
......@@ -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