From e39b7df5ccb8323116069e7f74becc73dacd6c0a Mon Sep 17 00:00:00 2001 From: c4ch3c4d3 Date: Tue, 18 Aug 2026 20:19:05 -0500 Subject: [PATCH] fix: health chip API_BASE scope (use App.apiBase) --- payload/user/remote_access/pager-webui/www/index.html | 2 +- payload/user/remote_access/pager-webui/www/js/app.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/payload/user/remote_access/pager-webui/www/index.html b/payload/user/remote_access/pager-webui/www/index.html index 172ffbf..5a0f8d2 100644 --- a/payload/user/remote_access/pager-webui/www/index.html +++ b/payload/user/remote_access/pager-webui/www/index.html @@ -268,7 +268,7 @@ - + diff --git a/payload/user/remote_access/pager-webui/www/js/app.js b/payload/user/remote_access/pager-webui/www/js/app.js index 80c5028..75cc2f8 100644 --- a/payload/user/remote_access/pager-webui/www/js/app.js +++ b/payload/user/remote_access/pager-webui/www/js/app.js @@ -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;