display status using description only (readme doesn't mention period)

This commit is contained in:
2026-07-11 07:56:51 -04:00
parent ce66b0de3f
commit 131e5ffabf
2 changed files with 7 additions and 1 deletions

View File

@@ -103,7 +103,7 @@
'KO': 'Generic error'
};
const st = (data.status||'').split(':')[0];
document.getElementById('westatus').innerHTML = DOMPurify.sanitize(data.status||'—') + (statusMap[st] ? ' (' + statusMap[st] + ')' : '');
document.getElementById('westatus').innerHTML = statusMap[st] || '—';
const tableBody = document.querySelector('#wetimes tbody');
tableBody.innerHTML ='';