Skip to content

Commit

Permalink
webui: code optimize
Browse files Browse the repository at this point in the history
small optimize in b0da301

#23
  • Loading branch information
KOWX712 authored and backslashxx committed Dec 9, 2024
1 parent b0da301 commit 73c20c2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions module/webroot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,7 @@ function updateVersion(versionText) {
async function checkUpdateStatus() {
try {
const result = await execCommand("grep -q '^updateJson' /data/adb/modules/bindhosts/module.prop");
if (result.includes('updateJson')) {
toggleVersion.checked = false;
} else {
toggleVersion.checked = true;
}
toggleVersion.checked = !result;
} catch (error) {
console.error('Error checking update status:', error);
}
Expand Down

0 comments on commit 73c20c2

Please sign in to comment.