Guard checkHealth() against null healthPill on dashboard pages
This commit is contained in:
@@ -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', {
|
||||||
|
|||||||
Reference in New Issue
Block a user