You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
Update index.js
Better unsuccessful prompt
This commit is contained in:
@@ -296,11 +296,11 @@ document.getElementById("save").addEventListener("click", async () => {
|
|||||||
showPrompt("Config and target.txt updated");
|
showPrompt("Config and target.txt updated");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to update target list:", 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) {
|
} catch (error) {
|
||||||
console.error("Failed to update EXCLUDE file:", 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 readExcludeFile();
|
||||||
await refreshAppList();
|
await refreshAppList();
|
||||||
|
|||||||
Reference in New Issue
Block a user