summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoruser@node5.net <user@node5.net>2026-07-01 23:52:10 +0200
committeruser@node5.net <user@node5.net>2026-07-01 23:52:10 +0200
commit409e0983dceb343fb97ba7571d532c2d2094553e (patch)
treecf335896219285a3989e6746543a6c15fc0e992a /src
parent7a4e236689322cbbf2b1cc0e3cf0a46a5dee5f61 (diff)
main.js - don't double nest program
Diffstat (limited to 'src')
-rw-r--r--src/static/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/main.js b/src/static/main.js
index 86cda7e..45b7f9b 100644
--- a/src/static/main.js
+++ b/src/static/main.js
@@ -1,7 +1,7 @@
async function update() {
const html = await (await fetch("/update")).text();
document.querySelector("#top").innerHTML = html.split("\n").slice(0, 1)[0];
- document.querySelector("#program").innerHTML = html.split("\n").slice(1).join("\n");
+ document.querySelector("#program").outerHTML = html.split("\n").slice(1).join("\n");
}
setInterval(() => {