mirror of
https://github.com/vitorpamplona/Nostryfied.git
synced 2025-06-06 18:31:07 +00:00
Fixes bug with urls in relay names
This commit is contained in:
parent
d14d9aa2fb
commit
165d6f003f
@ -110,7 +110,7 @@ const displayRelayStatus = (relayStatusAndCount) => {
|
|||||||
const relayName = it.replace("wss://", "").replace("ws://", "")
|
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 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) {
|
if ($('#' + elemId).length > 0) {
|
||||||
$('#' + elemId).html(line)
|
$('#' + elemId).html(line)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user