fix: health chip API_BASE scope (use App.apiBase)
This commit is contained in:
@@ -268,7 +268,7 @@
|
|||||||
<script src="js/xterm-addon-fit.min.js"></script>
|
<script src="js/xterm-addon-fit.min.js"></script>
|
||||||
<script src="js/terminal.js"></script>
|
<script src="js/terminal.js"></script>
|
||||||
<script src="js/pager.js"></script>
|
<script src="js/pager.js"></script>
|
||||||
<script src="js/views.js?v=20260818-1"></script>
|
<script src="js/views.js?v=20260818-2"></script>
|
||||||
<script src="js/app.js?v=20260811-9"></script>
|
<script src="js/app.js?v=20260811-9"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -495,7 +495,7 @@ const Live = (() => {
|
|||||||
if (el) el.textContent = 'BAT ' + (b.level == null ? '--' : b.level + '%' + (b.charging ? '+' : '')) + ' CLIENTS ' + n;
|
if (el) el.textContent = 'BAT ' + (b.level == null ? '--' : b.level + '%' + (b.charging ? '+' : '')) + ' CLIENTS ' + n;
|
||||||
}
|
}
|
||||||
function pollHealth() {
|
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) => {
|
.then((h) => {
|
||||||
const el = document.getElementById('health-status');
|
const el = document.getElementById('health-status');
|
||||||
if (!el) return;
|
if (!el) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user