From 80c278ca99827fb500f5e2080fc8d1cc05a184c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Tue, 6 Feb 2024 20:48:30 +0100 Subject: [PATCH] Fix order --- assets/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/script.js b/assets/script.js index 4121dab..4c72c00 100644 --- a/assets/script.js +++ b/assets/script.js @@ -213,9 +213,9 @@ async function logout() { doAction('/account', data, "Logout Successful!", "Logout failed.") .then(async () => { - localStorage.clear(); await refreshNavbar(); await navigateTo(localStorage.getItem("defaultSite"), localStorage.getItem("defaultPage")); + localStorage.clear(); umami.track("logout"); }) .catch((error) => {