Update index.js

Better unsuccessful prompt
This commit is contained in:
KOWX712
2024-11-10 01:06:55 +08:00
parent eb8666f79e
commit a02ed06557

View File

@@ -296,11 +296,11 @@ document.getElementById("save").addEventListener("click", async () => {
showPrompt("Config and target.txt updated");
} catch (error) {
console.error("Failed to update target list:", error);
showPrompt("Config saved, but failed to update target list", false);
showPrompt("File not found, please reinstall module!", false);
}
} catch (error) {
console.error("Failed to update EXCLUDE file:", error);
showPrompt("Failed to save config", false);
showPrompt("File not found, please reinstall module!", false);
}
await readExcludeFile();
await refreshAppList();