diff options
| author | user@node5.net <user@node5.net> | 2026-07-01 23:52:10 +0200 |
|---|---|---|
| committer | user@node5.net <user@node5.net> | 2026-07-01 23:52:10 +0200 |
| commit | 409e0983dceb343fb97ba7571d532c2d2094553e (patch) | |
| tree | cf335896219285a3989e6746543a6c15fc0e992a | |
| parent | 7a4e236689322cbbf2b1cc0e3cf0a46a5dee5f61 (diff) | |
main.js - don't double nest program
| -rw-r--r-- | src/static/main.js | 2 |
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(() => { |
