From 942bda3a29d94c7c110b7d2c94a8747b2b1602a7 Mon Sep 17 00:00:00 2001 From: piair Date: Wed, 27 Sep 2023 12:11:58 +0200 Subject: [PATCH] ca va faire plus de version que minecraft a ce rythme --- Flask/static/js/main.js | 13 +++---------- version | 2 +- 2 files changed, 4 insertions(+), 11 deletions(-) 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