Fixed logout

This commit is contained in:
Tracker-Friendly 2024-02-27 19:27:57 +00:00
parent f22348aba5
commit 1c6eba8b47
1 changed files with 3 additions and 3 deletions

View File

@ -236,7 +236,7 @@ usernameBox.addEventListener("click", (event) => {
updateUserInfo()
});
logOutButton.addEventListener("click", (event) => {
window.location.replace("/logout/index.html")
window.location.replace("../logout/index.html")
});
exitThing.addEventListener("click", (event) => {
optionsDiv.classList.add("hidden")
@ -256,7 +256,7 @@ deleteMyAccountButton.addEventListener("click", (event) => {
.then((response) => response)
.then((response) => {
if (response.status == 200) {
window.location.href = "https://notes.hectabit.org/api/logout"
window.location.href = "../logout/index.html"
} else {
displayError("Failed to delete account (HTTP error code " + response.status + ")")
}
@ -320,7 +320,7 @@ sessionManagerButton.addEventListener("click", (event) => {
.then((response) => response)
.then((response) => {
if (responseData[i]["thisSession"] == true) {
window.location.replace("https://notes.hectabit.org/api/logout")
window.location.replace("../logout/index.html")
}
});
sessionElement.remove()