1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-24 16:55:22 +03:00

Move code for the debug trace window to an external script

Chrome doesn't allow inline scripts, only external ones
This commit is contained in:
Alberto García Hierro 2018-02-12 14:01:01 +00:00
parent b98d7a8f3b
commit 08a54197c0
4 changed files with 16 additions and 10 deletions

9
js/debug_trace.js Normal file
View file

@ -0,0 +1,9 @@
function debugTraceOnLoad()
{
var output = document.getElementById('debug-trace');
setInterval(function() {
output.innerText = getDebugTrace();
}, 100);
}
window.onload = debugTraceOnLoad;