diff options
author | adam <adam@> | 2021-02-12 19:33:56 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-12 19:33:56 +0200 |
commit | 93f80aa09236bbb59be69d2ab674d0b0bc73822b (patch) | |
tree | c7f6552964eb37a3fa364fa4f3bdb99f4e6f79d7 | |
parent | 661172e6ce30235851fdee0736df0e532e997bd4 (diff) | |
download | fileup-93f80aa09236bbb59be69d2ab674d0b0bc73822b.tar.gz |
0 was not interpreted as false
-rw-r--r-- | loggedin.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); |