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

software/js-drone: fix latency in log displaying

parent cfbef55a
...@@ -38,7 +38,7 @@ md5sum = 1555496ad591a31a845f33488d5c335d ...@@ -38,7 +38,7 @@ md5sum = 1555496ad591a31a845f33488d5c335d
[script-js] [script-js]
_update_hash_filename_ = web-gui/script.js.jinja2 _update_hash_filename_ = web-gui/script.js.jinja2
md5sum = dfa140d70d8a9cadc6cee865be4e8c26 md5sum = 24ed6ce534feab8bbb93f06246275e89
[worker] [worker]
_update_hash_filename_ = drone-scripts/worker.js.jinja2 _update_hash_filename_ = drone-scripts/worker.js.jinja2
......
...@@ -133,9 +133,13 @@ ...@@ -133,9 +133,13 @@
} }
if (prompt.children.length === PROMPT_MAX_MSG) { if (prompt.children.length === PROMPT_MAX_MSG) {
prompt.removeChild(prompt.firstElementChild); setTimeout(function() {
prompt.removeChild(prompt.firstElementChild);
}, 0);
} }
prompt.appendChild(new_div); setTimeout(function() {
prompt.appendChild(new_div);
}, 0);
} else { } else {
console.info(message); console.info(message);
} }
......
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