diff --git a/Flask/static/js/main.js b/Flask/static/js/main.js index 6cd9163..4eec21b 100644 --- a/Flask/static/js/main.js +++ b/Flask/static/js/main.js @@ -69,21 +69,14 @@ function change_proxy(value, data, len) { function change_logs(value) { var myIframe = document.getElementById('embed'); - myIframe.addEventListener("load", function() { + myIframe.addEventListener("load", async () => { let doc = myIframe.contentDocument; doc.body.innerHTML = doc.body.innerHTML + ''; myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight); - - myInterval = window.setInterval(function() { - reloadIFrame() - }, 1000); + await delay(1000); + document.getElementById('iframe').contentWindow.location.reload(); }); - function reloadIFrame() { - console.log('reloading..'); - document.getElementById('iframe').contentWindow.location.reload(); - clearInterval(myInterval); - } myIframe.src = "/static/logs/" + value + ".txt"; diff --git a/version b/version index b3cf009..a6f0d5f 100644 --- a/version +++ b/version @@ -1 +1 @@ -v6.6.11 +v6.6.12