Fixes log pane: uses line breaks instead of newline characters.

This commit is contained in:
Himadri Bhattacharjee
2023-03-24 13:39:07 +05:30
parent 6931c34df0
commit 483585dd82

View File

@@ -32,9 +32,10 @@ editor.addEventListener('keyup', (_) => {
function reload_logs() {
doApi({'action':'logs'}).then(r => r.json()).then(b => {
logs.innerHTML += b.join('\n')
logs.innerHTML += '\n'
doApi({'action':'logs'}).then(r => r.json()).then(body => {
body.map(entry => {
logs.innerHTML += entry + '<br />'
})
})
}