Require confirmation

This commit is contained in:
Sainan 2025-01-18 11:00:32 +01:00
parent 664e3cc9ca
commit c312814001

View File

@ -1093,6 +1093,10 @@ function doAddAllMods() {
}
modsAll = Array.from(modsAll);
if (
modsAll.length != 0 &&
window.confirm("Are you sure you want to add " + modsAll.length + " mods to your account?")
) {
// Batch to avoid PayloadTooLargeError
const batches = [];
for (let i = 0; i < modsAll.length; i += 1000) {
@ -1112,6 +1116,7 @@ function doAddAllMods() {
updateInventory();
});
});
}
});
});
}