commento.js: confirm before deleting

This commit is contained in:
Adhityaa Chandrasekar 2019-09-13 18:17:40 -07:00
parent ee7875cc1e
commit c2bda4abc6

View File

@ -1041,6 +1041,10 @@
global.commentDelete = function(commentHex) {
if (!confirm("Are you sure you want to delete this comment?")) {
return;
}
var json = {
"commenterToken": commenterTokenGet(),
"commentHex": commentHex,