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

Cette révision appartient à :
Stephen McQuay 2015-08-30 02:29:10 -07:00
Parent bb5f76cd97
révision ea5a1f902a
1 fichiers modifiés avec 6 ajouts et 1 suppressions

Voir le fichier

@ -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() {