From f9ffc383a0ff769d038664dc0b562c141722023f Mon Sep 17 00:00:00 2001 From: svatantrya Date: Sat, 11 Jul 2026 20:27:54 -0400 Subject: [PATCH] fix: add missing statusMap definition and iv-balance reset --- index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/index.html b/index.html index 3e3108f..e85cbc2 100644 --- a/index.html +++ b/index.html @@ -383,6 +383,18 @@ let minAmount = 50000; const fmt = n => (n != null ? Number(n).toLocaleString('en-US') : '—'); const trunc = (s, m=40) => s && s.length > m ? s.slice(0, m) + '…' : s; +const statusMap = { + 'OK': 'Health check passed', + 'TIMEOUT': 'Connection timeout', + 'CONNECTION': 'Connection error', + 'STATUS': 'HTTP error', + 'WRONG REPLY': 'Invalid JSON response', + 'REQUEST': 'Request error', + 'BODY': 'Body read error', + 'DECODE': 'Decode error', + 'KO': 'Generic error' +}; + function getChain() { const btn = document.querySelector('#chainSeg [aria-pressed="true"]'); return btn ? btn.dataset.c : 'bitcoin'; @@ -508,6 +520,7 @@ document.getElementById('submit').addEventListener('click', async () => { document.getElementById('iv-min').textContent = '—'; document.getElementById('iv-chain').textContent = '—'; document.getElementById('iv-addr').textContent = '—'; + document.getElementById('iv-balance').textContent = '—'; document.getElementById('iv-url').textContent = '—'; document.getElementById('iv-contact').textContent = '—'; document.getElementById('iv-weinfo').href = '#';