From d815bc3c5b482327c8b7da64a3aaf3a222afe74f Mon Sep 17 00:00:00 2001 From: quenousimporte <76260127+quenousimporte@users.noreply.github.com> Date: Wed, 1 Feb 2023 14:34:02 +0100 Subject: [PATCH] fix: hide file input if vault not sandbox --- main.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.js b/main.js index 9186a33..38e1d38 100644 --- a/main.js +++ b/main.js @@ -525,10 +525,7 @@ function switchvault() window.localStorage.setItem("vault", vault); init(); - if (vault == "sandbox") - { - datafile.hidden = false; - } + datafile.hidden = vault != "sandbox"; }); }