Fix lag on deselect unnecessary option

This commit is contained in:
KOWX712
2024-12-11 15:41:20 +08:00
parent 9302d39910
commit 4c9e56c1db
2 changed files with 8 additions and 6 deletions

View File

@@ -392,6 +392,7 @@ async function deselectUnnecessaryApps() {
}, 0);
console.log("Exclude list found. Running xposed script.");
}
await new Promise(resolve => setTimeout(resolve, 100));
const result = await execCommand(`cat ${basePath}common/tmp/exclude-list`);
const UnnecessaryApps = result.split("\n").map(app => app.trim()).filter(Boolean);
const apps = document.querySelectorAll(".card");