This commit is contained in:
ManeraKai 2024-07-21 21:09:11 +03:00
parent bb377d9e56
commit 8bf25954a3
1 changed files with 7 additions and 5 deletions

View File

@ -188,11 +188,13 @@ async function calcCustomInstances(frontend) {
document.getElementById(frontend).getElementsByClassName("custom-checklist")[0].innerHTML = customInstances
.map(
x => {
const time = pingCache[x]
const time = pingCache[x];
if (time) {
const { color, text } = processTime(time)
var timeText = `<span class="ping" style="color:${color};">${text}</span>`
var { color, text } = processTime(time);
}
const timeText = time
? `<span class="ping" style="color:${color};">${text}</span>`
: "";
const custom = isCustomInstance(frontend, x) ? "" : `<span>custom</span>`
return `<div>
<x>