mirror of
https://github.com/ShaYmez/HBMonv2.git
synced 2025-04-12 22:38:32 -04:00
Update hbmon.js
This commit is contained in:
parent
f457ebd299
commit
7e5b6c943c
@ -12,7 +12,7 @@
|
||||
opb_table = document.getElementById('opb');
|
||||
peers_table = document.getElementById('peers');
|
||||
|
||||
wsuri = "ws://" + window.location.hostname + ":9000";
|
||||
wsuri = (((window.location.protocol === "https:") ? "wss://" : "ws://") + window.location.hostname + ":9000");
|
||||
|
||||
if ("WebSocket" in window) {
|
||||
sock = new WebSocket(wsuri);
|
||||
|
Loading…
Reference in New Issue
Block a user