opt: add system app menu

This commit is contained in:
KOWX712
2025-03-01 06:05:53 +08:00
parent 9f859dc488
commit bf726bf863
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ export async function setupSystemAppMenu() {
// Add system app button
document.getElementById("add-system-app-button").addEventListener("click", async () => {
const input = document.getElementById("system-app-input");
const packageName = input.value;
const packageName = input.value.trim();
if (packageName) {
try {
const result = await execCommand(`pm list packages -s | grep -q ${packageName} || echo "false"`);