From e3d88133dadbcf714ab4b14041e014dcb36417cd Mon Sep 17 00:00:00 2001 From: Neythen Treloar Date: Sat, 26 Feb 2022 16:44:14 +0000 Subject: [PATCH] fixed remove messages, images, gifs in JS bug --- csv/system_info.json | 2 +- static/app.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/csv/system_info.json b/csv/system_info.json index 02cf3e9..c82636f 100755 --- a/csv/system_info.json +++ b/csv/system_info.json @@ -1 +1 @@ -{"update_available": false, "first_boot": true} +{"update_available": false, "first_boot": false} \ No newline at end of file diff --git a/static/app.js b/static/app.js index 12011e9..b7e0e45 100755 --- a/static/app.js +++ b/static/app.js @@ -486,6 +486,7 @@ allFeaturesRemoveBtns.map((value, index) => { var item = allFeaturesList[index][i]; console.log(item); if (item.getAttribute("class") == "active") { + /* if (item.parentElement.getAttribute("id") == "images-features") { let getImages = JSON.parse(localStorage.getItem("customImages")); @@ -511,8 +512,9 @@ allFeaturesRemoveBtns.map((value, index) => { localStorage.setItem("customMsg", JSON.stringify(filter)); } else { + */ item.remove(); - } + //} } } });