diff options
author | adam <adam@> | 2021-02-12 20:48:02 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-12 20:48:02 +0200 |
commit | 022e478554fdb7110f3029fab49f706ba1d893ad (patch) | |
tree | 9772b4d7ed3c2d96e1fc03ff36cdefa659fbd73d /loggedin.js | |
parent | fea0178c85cca6c95cdd8a92fe24c3fd81fec742 (diff) | |
parent | d66cf65a66b2eac4b9ccaf47dc7c0e9577687b3f (diff) | |
download | fileup-022e478554fdb7110f3029fab49f706ba1d893ad.tar.gz |
Merge branch 'master' of https://github.com/alexvitkov/india
Diffstat (limited to 'loggedin.js')
-rw-r--r-- | loggedin.js | 3 |
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); |