Fixed the confirmation dialouge

This commit is contained in:
Tracker-Friendly 2024-05-18 00:55:45 +01:00
parent c3452e92c7
commit e23a415dd8
1 changed files with 19 additions and 20 deletions

View File

@ -8,9 +8,7 @@
<body style="background-color: transparent;">
<script>
async function deleteacct() {
if (confirm("Are you SURE you would like to delete your account forever?") != true) {
break
}
if (confirm("Are you SURE you would like to delete your account forever?") == true) {
await fetch(remote + "/api/deleteaccount", {
method: "POST",
body: JSON.stringify({
@ -30,6 +28,7 @@
doStuff()
});
}
}
fetch("/api/userinfo", {
method: "POST",