chore: replaceChildren + http case in flow.js and logs.js

Same cleanup as the previous pass (tabs.js, app.js): replace
innerHTML = '' with replaceChildren() and lowercase the one
uppercase 'HTTP' error in logs.js.
This commit is contained in:
iris 2026-06-01 23:13:50 +02:00
commit 146a6b7cd5
2 changed files with 9 additions and 9 deletions

View file

@ -101,7 +101,7 @@ import {
(() => {
const flow = $('msgflow');
if (!flow) return;
flow.innerHTML = '';
flow.replaceChildren();
const tsFmt = (n) => new Date(n * 1000).toISOString().slice(11, 19);
// Pulse the page banner whenever a broker event lands. The
// `.banner` element lives in the dashboard's <footer> rather than
@ -286,11 +286,11 @@ import {
}
function hideSuggest() {
suggest.hidden = true;
suggest.innerHTML = '';
suggest.replaceChildren();
suggestActive = -1;
}
function renderSuggest(matches) {
suggest.innerHTML = '';
suggest.replaceChildren();
if (!matches.length) { hideSuggest(); return; }
for (let i = 0; i < matches.length; i += 1) {
const item = document.createElement('div');