This commit is contained in:
piair 2023-09-27 12:02:19 +02:00
parent 07c37b9ae9
commit 8934568b84
2 changed files with 4 additions and 7 deletions

View File

@ -74,18 +74,15 @@ function change_logs(value) {
doc.body.innerHTML = doc.body.innerHTML + '<style>html{color:white;}</style>'; doc.body.innerHTML = doc.body.innerHTML + '<style>html{color:white;}</style>';
myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight); myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
window.setInterval(function() { myInterval = window.setInterval(function() {
reloadIFrame() reloadIFrame()
}, 500); }, 100);
}); });
function reloadIFrame() { function reloadIFrame() {
console.log('reloading..'); console.log('reloading..');
document.getElementById('iframe').contentWindow.location.reload(); document.getElementById('iframe').contentWindow.location.reload();
clearInterval(myInterval);
window.setInterval(function() {
reloadIFrame()
}, 100000);
} }
myIframe.src = "/static/logs/" + value + ".txt"; myIframe.src = "/static/logs/" + value + ".txt";

View File

@ -1 +1 @@
v6.6.10 v6.6.11