Fixes bug with urls in relay names

This commit is contained in:
Vitor Pamplona 2024-03-12 08:34:38 -04:00
parent d14d9aa2fb
commit 165d6f003f

View File

@ -110,7 +110,7 @@ const displayRelayStatus = (relayStatusAndCount) => {
const relayName = it.replace("wss://", "").replace("ws://", "")
const line = "<td>" + relayName + "</td><td>" + relayStatusAndCount[it].status + "</td>" + untilStr + "<td>" + relayStatusAndCount[it].count + "</td>" + "<td>" + msg + "</td>"
const elemId = relayName.replaceAll(".", "")
const elemId = relayName.replaceAll(".", "").replaceAll("/", "-")
if ($('#' + elemId).length > 0) {
$('#' + elemId).html(line)