fix: health chip API_BASE scope (use App.apiBase)

This commit is contained in:
2026-08-18 20:19:05 -05:00
parent 4e5ab116b5
commit e39b7df5cc
2 changed files with 2 additions and 2 deletions
@@ -495,7 +495,7 @@ const Live = (() => {
if (el) el.textContent = 'BAT ' + (b.level == null ? '--' : b.level + '%' + (b.charging ? '+' : '')) + ' CLIENTS ' + n;
}
function pollHealth() {
fetch(API_BASE + '/api/health', { credentials: 'include' }).then((r) => r.json())
fetch(App.apiBase + '/api/health', { credentials: 'include' }).then((r) => r.json())
.then((h) => {
const el = document.getElementById('health-status');
if (!el) return;