srv/poe_manager/templates/logs.html aktualisiert
This commit is contained in:
@@ -14,7 +14,11 @@ function fetchLog() {
|
|||||||
.then(response => response.text())
|
.then(response => response.text())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
const box = document.getElementById("log-box");
|
const box = document.getElementById("log-box");
|
||||||
box.innerText = data;
|
const filteredLines = data
|
||||||
|
.split("\n")
|
||||||
|
.filter(line => !line.includes("ist erreichbar!"))
|
||||||
|
.join("\n");
|
||||||
|
box.innerText = filteredLines;
|
||||||
box.scrollTop = box.scrollHeight;
|
box.scrollTop = box.scrollHeight;
|
||||||
lastUpdateTime = now;
|
lastUpdateTime = now;
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user