fix(webui): replace template literals to avoid backticks inside Go raw string; build again
This commit is contained in:
parent
45d1d98e56
commit
bb60430df2
1 changed files with 2 additions and 2 deletions
|
|
@ -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; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue