Fix main.js crash
This commit is contained in:
+2
-1
@@ -94,7 +94,8 @@ function bootToken() {
|
||||
}
|
||||
}
|
||||
function tickClock() {
|
||||
$("#clock").textContent = new Date().toTimeString().slice(0, 5);
|
||||
const c = $("#clock");
|
||||
if (c) c.textContent = new Date().toTimeString().slice(0, 5);
|
||||
}
|
||||
|
||||
for (const p of panels) p.mount?.();
|
||||
|
||||
Reference in New Issue
Block a user