update 2025-11-15 14:18:20

This commit is contained in:
kenzok8
2025-11-15 14:18:20 +08:00
parent 6aea1b5b49
commit 5c766d4393
2 changed files with 5 additions and 2 deletions

View File

@@ -1205,7 +1205,7 @@ function get_version()
if not version or #version == 0 then
version = sys.exec("apk list luci-app-passwall 2>/dev/null | awk '/installed/ {print $1}' | cut -d'-' -f4-")
end
return version or ""
return (version or ""):gsub("\n", "")
end
function to_check_self()

View File

@@ -111,7 +111,10 @@ local version = {}
} else {
btn.disabled = true;
btn.value = noUpdateText;
window['_' + app + '-force_btn'].style.display = "inline";
var forceBtn = document.getElementById('_' + app + '-force_btn');
if (forceBtn) {
forceBtn.style.display = "inline";
}
}
}
}, 300);