From 85c18501f24d0d9946a216d0f4c2f1290eece683 Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Fri, 12 Feb 2021 20:06:29 +0200 Subject: fixed a backend bug in the frontend --- loggedin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3