aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);