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