ui: preload bold, remove getdots from dom after load

This commit is contained in:
Aaron Greenspan
2021-01-22 10:28:07 -07:00
committed by Aiden McClelland
parent d2a70a782b
commit 53db8fc4ec
4 changed files with 16 additions and 9 deletions

View File

@@ -30,14 +30,16 @@ export class StartupAlertsNotifier {
await this.checks
.filter(c => !c.hasRun && c.shouldRun(server))
.reduce(async (previousDisplay, c) => {
let checkRes
let checkRes: any
try {
checkRes = await c.check(server)
} catch (e) {
return console.error(`Exception in ${c.name} check:`, e)
console.error(`Exception in ${c.name} check:`, e)
return true
}
c.hasRun = true
const displayRes = await previousDisplay
if (!checkRes) return true
if (displayRes) return c.display(checkRes)
}, Promise.resolve(true))