Commit e12c3fcb authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

software/js-drone: fix log printing in GUI

Fix logs printed out of the logging area
parent 54a2a0e2
......@@ -38,7 +38,7 @@ md5sum = 1555496ad591a31a845f33488d5c335d
[script-js]
_update_hash_filename_ = web-gui/script.js.jinja2
md5sum = 24ed6ce534feab8bbb93f06246275e89
md5sum = 9a5e44ae134697abb5b257ef9cb5b22a
[worker]
_update_hash_filename_ = drone-scripts/worker.js.jinja2
......
......@@ -132,12 +132,10 @@
new_div.appendChild(new_span);
}
if (prompt.children.length === PROMPT_MAX_MSG) {
setTimeout(function() {
prompt.removeChild(prompt.firstElementChild);
}, 0);
}
setTimeout(function() {
if (prompt.children.length === PROMPT_MAX_MSG) {
prompt.removeChild(prompt.firstElementChild);
}
prompt.appendChild(new_div);
}, 0);
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment