Fixed undefined in settings https://github.com/libredirect/browser_extension/issues/957
This commit is contained in:
parent
bb377d9e56
commit
8bf25954a3
|
@ -188,11 +188,13 @@ async function calcCustomInstances(frontend) {
|
||||||
document.getElementById(frontend).getElementsByClassName("custom-checklist")[0].innerHTML = customInstances
|
document.getElementById(frontend).getElementsByClassName("custom-checklist")[0].innerHTML = customInstances
|
||||||
.map(
|
.map(
|
||||||
x => {
|
x => {
|
||||||
const time = pingCache[x]
|
const time = pingCache[x];
|
||||||
if (time) {
|
if (time) {
|
||||||
const { color, text } = processTime(time)
|
var { color, text } = processTime(time);
|
||||||
var timeText = `<span class="ping" style="color:${color};">${text}</span>`
|
|
||||||
}
|
}
|
||||||
|
const timeText = time
|
||||||
|
? `<span class="ping" style="color:${color};">${text}</span>`
|
||||||
|
: "";
|
||||||
const custom = isCustomInstance(frontend, x) ? "" : `<span>custom</span>`
|
const custom = isCustomInstance(frontend, x) ? "" : `<span>custom</span>`
|
||||||
return `<div>
|
return `<div>
|
||||||
<x>
|
<x>
|
||||||
|
|
Loading…
Reference in New Issue