aboutsummaryrefslogtreecommitdiff
path: root/static/index.js
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2023-12-06 21:13:12 +0000
committerLouis Pilfold <louis@lpil.uk>2023-12-06 21:13:12 +0000
commit658de7ac8276cac1c4d8f89d5783b1faaef42871 (patch)
tree2e41a8d48c30b11d5869579901a645ed486f2476 /static/index.js
parent58efb89355676356ee1006bbd2c8b0ee44108358 (diff)
downloadtour-658de7ac8276cac1c4d8f89d5783b1faaef42871.tar.gz
tour-658de7ac8276cac1c4d8f89d5783b1faaef42871.zip
More content!
Diffstat (limited to 'static/index.js')
-rw-r--r--static/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/index.js b/static/index.js
index 4ba2b19..094011b 100644
--- a/static/index.js
+++ b/static/index.js
@@ -95,6 +95,7 @@ function replaceOutput(content, className) {
}
function appendOutput(content, className) {
+ if (!content) return;
const element = document.createElement("pre");
element.textContent = content;
element.className = className;