From 60254e5839b2e5e882912b12298832b1218d2515 Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Sat, 12 Nov 2022 12:47:21 +0100 Subject: [PATCH] Fix removing from white/black lists --- apps/swp2clk/settings.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/swp2clk/settings.js b/apps/swp2clk/settings.js index a97b51fab..4f8db5eb8 100644 --- a/apps/swp2clk/settings.js +++ b/apps/swp2clk/settings.js @@ -53,6 +53,7 @@ appList.forEach((app) => { if (settings.whiteList.indexOf(app.src) >= 0) { + let index = settings.whiteList.indexOf(app.src); whiteListMenu[app.name] = () => { E.showPrompt("Delete from WL?", { title: "Delete from WL?", @@ -101,6 +102,7 @@ appList.forEach((app) => { if (settings.blackList.indexOf(app.src) >= 0) { + let index = settings.whiteList.indexOf(app.src); blackListMenu[app.name] = () => { E.showPrompt("Delete from BL?", { title: "Delete from BL?",