aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/js/fileview.js
diff options
context:
space:
mode:
authorMarvin Borner2019-04-14 18:03:51 +0200
committerMarvin Borner2019-04-14 18:03:51 +0200
commitdd56bcdf951a8868461c80f72783a0e411e4fae4 (patch)
tree907262a6ae2fc5ba4b27fc2b0d84962b2b98e4df /src/main/resources/js/fileview.js
parent8c6905d0553b88b1257cab13355873d5438704fa (diff)
Added settings support for non-preview files
Diffstat (limited to 'src/main/resources/js/fileview.js')
-rw-r--r--src/main/resources/js/fileview.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/resources/js/fileview.js b/src/main/resources/js/fileview.js
index c6b10f2..c34ce27 100644
--- a/src/main/resources/js/fileview.js
+++ b/src/main/resources/js/fileview.js
@@ -33,6 +33,8 @@ if (extension === "md" || extension === "html") {
settings.style.display = "none";
}
});
+} else {
+ settings.style.display = "block";
}
code.addEventListener("change", () => {