1
0
Fork 0

fixed but with matching https:// and wss://

Dieser Commit ist enthalten in:
Stephen McQuay 2015-08-30 02:29:10 -07:00
Ursprung bb5f76cd97
Commit ea5a1f902a
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -63,7 +63,12 @@ function loadCode() {
}
function wsurl() {
return "ws://" + window.location.host + "/ws/";
var url = "ws://";
if(window.location.protocol == "https:") {
url = "wss://";
}
url = url + window.location.host + "/ws/";
return url;
}
function getGameID() {