From bb60430df2d651112fb55ac7b57f9413551088ca Mon Sep 17 00:00:00 2001 From: Thomas Cravey Date: Sat, 16 Aug 2025 15:26:25 -0500 Subject: [PATCH] fix(webui): replace template literals to avoid backticks inside Go raw string; build again --- internal/httpapi/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/httpapi/server.go b/internal/httpapi/server.go index 3fd1276..05004d9 100644 --- a/internal/httpapi/server.go +++ b/internal/httpapi/server.go @@ -236,7 +236,7 @@ func (s *Server) handleUI(w http.ResponseWriter, r *http.Request) { document.getElementById('built').textContent = data.builtAt; document.getElementById('uptime').textContent = data.uptime; document.getElementById('connected').textContent = data.connected? 'yes':'no'; - document.getElementById('counts').textContent = `ingested ${data.messagesIngested}, notified ${data.notificationsSent}, pruned ${data.messagesPruned}`; + document.getElementById('counts').textContent = 'ingested ' + data.messagesIngested + ', notified ' + data.notificationsSent + ', pruned ' + data.messagesPruned; }catch(e){ console.error(e); } } async function loadChannels(){ @@ -249,7 +249,7 @@ func (s *Server) handleUI(w http.ResponseWriter, r *http.Request) { const ch = document.getElementById('channel').value; const lim = document.getElementById('limit').value || '100'; try{ const data = await api('/api/tail',{query:{channel:ch,limit:lim}}); - const out = data.map(m=>`${m.time} ${m.author}: ${m.body}`).join('\n'); + const out = data.map(m => (m.time + ' ' + m.author + ': ' + m.body)).join('\n'); document.getElementById('tail').textContent = out; }catch(e){ document.getElementById('tail').textContent = 'error: '+e; } }