This commit is contained in:
naielv
2025-08-30 09:43:36 +02:00
parent 28ffd17bed
commit 5f59f9f0c0
2 changed files with 4 additions and 0 deletions

View File

@@ -52,6 +52,9 @@ function createPeerListElement(wireHType, wireID) {
function updateConnectionStatus(peerCount) {
const statusImage = peerCount < 3 ? "connect_ko.svg" : "connect_ok.svg";
if (window.navigator.onLine == false) {
statusImage = "offline.svg"
}
document.getElementById("connectStatus").src = `static/ico/${statusImage}`;
if (peerCount < 3) {