aboutsummaryrefslogtreecommitdiffstats
path: root/loggedin.js
diff options
context:
space:
mode:
authorAlex Vitkov <alexvitkov98@gmail.com>2021-02-12 20:06:54 +0200
committerAlex Vitkov <alexvitkov98@gmail.com>2021-02-12 20:06:54 +0200
commiteecdb71a05c4e6ee255e097bf93df37a1efb751f (patch)
tree9793c108997734f9cbfdffe269e71817f9db95f0 /loggedin.js
parent50cf7ff4affac08521d0ef78dad0f10eb9e9b8f8 (diff)
parent85c18501f24d0d9946a216d0f4c2f1290eece683 (diff)
downloadfileup-eecdb71a05c4e6ee255e097bf93df37a1efb751f.tar.gz
Merge branch 'live'
Diffstat (limited to 'loggedin.js')
-rw-r--r--loggedin.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/loggedin.js b/loggedin.js
index 01c8226..076fcbb 100644
--- a/loggedin.js
+++ b/loggedin.js
@@ -106,8 +106,9 @@ function load_dir() {
files = [];
var json = JSON.parse(this.responseText);
+ console.log(json);
for (const f of json) {
- add_file_visuals(f.name, f.is_directory, f.mimetype);
+ add_file_visuals(f.name, f.is_directory && f.is_directory != "0", f.mimetype);
}
};
xhr.send(data);