We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54b0ced commit 6eb4d96Copy full SHA for 6eb4d96
Wiki/Wiki.html
@@ -63,8 +63,14 @@
63
}
64
65
async function deletePage(id) {
66
- await fetch(`${apiUrl}/${id}`, { method: 'DELETE' });
67
- fetchPages();
+ if (confirm("Are you sure that you want to delete this page? Abusing the delete function can result in a ban from Coding Hut.") == true) {
+ await fetch(`${apiUrl}/${id}`, { method: 'DELETE' });
68
+ fetchPages();
69
+ alert("The page has been deleted.");
70
+ } else {
71
+ alert("Cancelled!");
72
+ }
73
+
74
75
76
function renderPages(pages) {
0 commit comments