fix: health chip API_BASE scope (use App.apiBase)
This commit is contained in:
1 parent
d10fba9d1b
commit
4ce19693d1
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user