Revert "SSL and nonSSL at the same time."

This reverts commit 15a966ad5e.
This commit is contained in:
Catalin Vatra
2021-05-21 14:05:13 +03:00
parent 15a966ad5e
commit aa8472994d
2 changed files with 8 additions and 14 deletions
+3 -9
View File
@@ -11,15 +11,9 @@
masters_table = document.getElementById('masters');
opb_table = document.getElementById('opb');
peers_table = document.getElementById('peers');
// Use both https and http protocols
if (window.location.protocol != "https:") {
wsuri = "ws://" + window.location.hostname + ":9000";
}
else {
wsuri = (((window.location.protocol === "https:") ? "wss://" : "ws://") + window.location.hostname + ":9001");
}
wsuri = (((window.location.protocol === "https:") ? "wss://" : "ws://") + window.location.hostname + ":9000");
if ("WebSocket" in window) {
sock = new WebSocket(wsuri);
} else if ("MozWebSocket" in window) {