Update hbmon.js

This commit is contained in:
Waldek 2021-05-21 09:57:40 +02:00 committed by GitHub
parent f457ebd299
commit 7e5b6c943c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);