From 1c6eba8b4736e2e8c692f5b6f6b2c547497fec04 Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Tue, 27 Feb 2024 19:27:57 +0000 Subject: [PATCH] Fixed logout --- static/js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/main.js b/static/js/main.js index 11d5b18..2da1223 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -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()