From 93f80aa09236bbb59be69d2ab674d0b0bc73822b Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 12 Feb 2021 19:33:56 +0200 Subject: 0 was not interpreted as false --- loggedin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loggedin.js b/loggedin.js index 08ca296..129f57b 100644 --- a/loggedin.js +++ b/loggedin.js @@ -153,7 +153,7 @@ function add_file_visuals(name, is_directory, mimetype) { var img = document.createElement('img'); var filename = document.createElement('div'); - if (is_directory) { + if (is_directory!=0) { img.src="/mimeicons/directory.png"; fileDiv.onclick = () => { pwd.push(name); -- cgit v1.2.3