From dc2a9e20df83058cd11620543f1e4e47bddfd763 Mon Sep 17 00:00:00 2001 From: piair Date: Wed, 27 Sep 2023 11:30:50 +0200 Subject: [PATCH] OMG VERSION DE FOU --- Flask/static/js/main.js | 15 ++++++++------- version | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Flask/static/js/main.js b/Flask/static/js/main.js index 93f684d..5b184ff 100644 --- a/Flask/static/js/main.js +++ b/Flask/static/js/main.js @@ -68,11 +68,12 @@ function change_proxy(value, data, len) { } function change_logs(value) { - console.log("new value : " + value); - document.getElementById("embed").src = "/static/logs/" + value + ".txt"; - window.onload = function() { - let myiFrame = document.getElementById("embed"); - let doc = myiFrame.contentDocument; - doc.body.innerHTML = doc.body.innerHTML + ''; - } + var myIframe = document.getElementById('embed'); + myIframe.addEventListener("load", function() { + let doc = myIframe.contentDocument; + doc.body.innerHTML = doc.body.innerHTML + ''; + }); + myIframe.src = "/static/logs/" + value + ".txt"; + + } diff --git a/version b/version index 2a9dcd7..55dda63 100644 --- a/version +++ b/version @@ -1 +1 @@ -v6.6.5 +v6.6.6