Guard checkHealth() against null healthPill on dashboard pages

This commit is contained in:
2026-05-26 23:48:26 +02:00
parent 93cc17e63f
commit 7b0728da75
+1
View File
@@ -1466,6 +1466,7 @@ function resetAliases() {
} }
async function checkHealth() { async function checkHealth() {
if (!els.healthPill) return;
els.healthPill.textContent = 'Checking...'; els.healthPill.textContent = 'Checking...';
try { try {
const response = await fetch('api/health.php', { const response = await fetch('api/health.php', {