Confirmation for WI entry delete

This commit is contained in:
Cohee 2023-09-05 12:05:20 +03:00
parent 7b3f242454
commit 06825331d6
1 changed files with 4 additions and 0 deletions

View File

@ -718,6 +718,10 @@ async function deleteWorldInfoEntry(data, uid) {
return;
}
if (!confirm(`Delete the entry with UID: ${uid}? This action is irreversible!`)) {
throw new Error("User cancelled deletion");
}
delete data.entries[uid];
}