fixed but with matching https:// and wss://
This commit is contained in:
+6
-1
@@ -63,7 +63,12 @@ function loadCode() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function wsurl() {
|
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() {
|
function getGameID() {
|
||||||
|
|||||||
Reference in New Issue
Block a user