From 8e8d5644690d583ba4a058ec606f87fefc421739 Mon Sep 17 00:00:00 2001 From: Hitonabi Date: Sat, 20 Jun 2026 22:37:52 +0200 Subject: [PATCH] Fix main.js crash --- static/js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/main.js b/static/js/main.js index 17d3932..67810aa 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -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?.();