"""prettier"""

This commit is contained in:
Sainan 2024-12-23 02:47:34 +01:00
parent 2a9d2a3be6
commit bcb2c23775

View File

@ -62,8 +62,16 @@ function logout() {
} }
function deleteAccount() { function deleteAccount() {
if (window.confirm("Are you sure you want to delete your account " + $(".displayname").text() + " (" + localStorage.getItem("email") + ")? This action cannot be undone.")) { if (
fetch("/custom/deleteAccount?" + window.authz).then(function() { window.confirm(
"Are you sure you want to delete your account " +
$(".displayname").text() +
" (" +
localStorage.getItem("email") +
")? This action cannot be undone."
)
) {
fetch("/custom/deleteAccount?" + window.authz).then(function () {
logout(); logout();
single.loadRoute("/webui/"); // Show login screen single.loadRoute("/webui/"); // Show login screen
}); });