Support ! and ? mode in WebUI

- Long press to open mode menu
- Show toast on error log

#7
This commit is contained in:
KOWX712
2024-12-29 02:38:47 +08:00
parent 940d809ac5
commit 77a6e06631
7 changed files with 289 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
import { basePath, execCommand, showPrompt } from './main.js';
import { basePath, execCommand, showPrompt, toast } from './main.js';
// Function to check or uncheck all app
function toggleCheckboxes(shouldCheck) {
@@ -32,6 +32,7 @@ document.getElementById("select-denylist").addEventListener("click", async () =>
});
console.log("Denylist apps selected successfully.");
} catch (error) {
toast("Failed to read DenyList!");
console.error("Failed to select Denylist apps:", error);
}
});
@@ -65,6 +66,7 @@ document.getElementById("deselect-unnecessary").addEventListener("click", async
});
console.log("Unnecessary apps deselected successfully.");
} catch (error) {
toast("Failed!");
console.error("Failed to deselect unnecessary apps:", error);
}
});