From e5920b207fb6ebc25aa8bb25a0aaee8c5049fff0 Mon Sep 17 00:00:00 2001 From: Gronod Date: Tue, 19 May 2026 22:33:09 +0100 Subject: [PATCH] debug: Add more detailed logging to renderStatusPanel --- public/app.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/public/app.js b/public/app.js index 0477ada..9c54829 100644 --- a/public/app.js +++ b/public/app.js @@ -820,6 +820,7 @@ async function refreshStatusPanel() { } function renderStatusPanel(data, panel) { + console.log('[Status] renderStatusPanel called with data:', data ? 'yes' : 'no', 'keys:', data ? Object.keys(data) : 'none'); const s = data.server; const hrs = Math.floor(s.uptimeSeconds / 3600); const mins = Math.floor((s.uptimeSeconds % 3600) / 60); @@ -926,7 +927,13 @@ function renderStatusPanel(data, panel) { html += ``; // Render into status-content div, not the whole panel (preserves webhooks section) const contentDiv = document.getElementById('status-content'); - if (contentDiv) contentDiv.innerHTML = html; + console.log('[Status] contentDiv found:', !!contentDiv, 'HTML length:', html.length); + if (contentDiv) { + contentDiv.innerHTML = html; + console.log('[Status] HTML rendered, contentDiv innerHTML length:', contentDiv.innerHTML.length); + } else { + console.error('[Status] contentDiv not found!'); + } // Wire close button — addEventListener avoids CSP inline handler restrictions const closeBtn = document.getElementById('status-close-btn'); if (closeBtn) closeBtn.addEventListener('click', closeStatusPanel);