forked from Adleraci/adlerka.top
Fix order
This commit is contained in:
parent
7a7321f69d
commit
80c278ca99
@ -213,9 +213,9 @@ async function logout() {
|
|||||||
|
|
||||||
doAction('/account', data, "Logout Successful!", "Logout failed.")
|
doAction('/account', data, "Logout Successful!", "Logout failed.")
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
localStorage.clear();
|
|
||||||
await refreshNavbar();
|
await refreshNavbar();
|
||||||
await navigateTo(localStorage.getItem("defaultSite"), localStorage.getItem("defaultPage"));
|
await navigateTo(localStorage.getItem("defaultSite"), localStorage.getItem("defaultPage"));
|
||||||
|
localStorage.clear();
|
||||||
umami.track("logout");
|
umami.track("logout");
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user