You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
Weak connection fix + code optimize + fix typo
Don't show applist before finish check update. Slightly slower loading but remove freeze on weak connection device
This commit is contained in:
@@ -418,14 +418,8 @@ async function deselectUnnecessaryApps() {
|
||||
// Function to check if Magisk
|
||||
async function checkMagisk() {
|
||||
try {
|
||||
const hasDenylistCondition = await execCommand(`
|
||||
if [ ! -f "/data/adb/apd" ] && [ ! -f "/data/adb/ksud" ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
`);
|
||||
if (hasDenylistCondition.trim() === "OK") {
|
||||
const magiskEnv = await execCommand(`command -v magisk >/dev/null 2>&1 && echo "OK"`);
|
||||
if (magiskEnv.trim() === "OK") {
|
||||
console.log("Denylist conditions met, displaying element.");
|
||||
selectDenylistElement.style.display = "flex";
|
||||
} else {
|
||||
@@ -798,9 +792,9 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
document.getElementById("about").addEventListener("click", aboutMenu);
|
||||
await fetchAppList();
|
||||
checkMagisk();
|
||||
updateCheck();
|
||||
loadingIndicator.style.display = "none";
|
||||
document.querySelector('.uninstall-container').classList.remove('hidden-uninstall');
|
||||
setTimeout(updateCheck, 0);
|
||||
});
|
||||
|
||||
// Redirect to GitHub release page
|
||||
|
||||
@@ -352,7 +352,7 @@ body {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.link{
|
||||
.link {
|
||||
flex: 0 1 auto;
|
||||
}
|
||||
|
||||
@@ -777,7 +777,7 @@ body {
|
||||
background-color: #121212;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
||||
.header-block,
|
||||
.header {
|
||||
background-color: #121212;
|
||||
@@ -802,7 +802,7 @@ body {
|
||||
.update-card {
|
||||
background-color: #4D4D4D;
|
||||
}
|
||||
|
||||
|
||||
.search-card {
|
||||
border: 1px solid #6E6E6E;
|
||||
}
|
||||
@@ -823,7 +823,7 @@ body {
|
||||
.menu-options li {
|
||||
border-bottom: 1px solid #6E6E6E;
|
||||
}
|
||||
|
||||
|
||||
.language-option:active,
|
||||
.menu-options li:active,
|
||||
.card:active,
|
||||
|
||||
Reference in New Issue
Block a user