diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index e818df279..90e999e1f 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -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]; }