aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradam <adam@>2021-02-12 20:48:02 +0200
committeradam <adam@>2021-02-12 20:48:02 +0200
commit022e478554fdb7110f3029fab49f706ba1d893ad (patch)
tree9772b4d7ed3c2d96e1fc03ff36cdefa659fbd73d
parentfea0178c85cca6c95cdd8a92fe24c3fd81fec742 (diff)
parentd66cf65a66b2eac4b9ccaf47dc7c0e9577687b3f (diff)
downloadfileup-022e478554fdb7110f3029fab49f706ba1d893ad.tar.gz
Merge branch 'master' of https://github.com/alexvitkov/india
-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);