From 7b0728da759dbbdaea17ff0bd53f38920087cca8 Mon Sep 17 00:00:00 2001 From: davegilligan Date: Tue, 26 May 2026 23:48:26 +0200 Subject: [PATCH] Guard checkHealth() against null healthPill on dashboard pages --- assets/js/tools.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/js/tools.js b/assets/js/tools.js index 23bb7c7..66cc3e2 100644 --- a/assets/js/tools.js +++ b/assets/js/tools.js @@ -1466,6 +1466,7 @@ function resetAliases() { } async function checkHealth() { + if (!els.healthPill) return; els.healthPill.textContent = 'Checking...'; try { const response = await fetch('api/health.php', {