Skip to content

Commit

Permalink
refactor: improve logout at asserts/index.js (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden authored Aug 24, 2024
1 parent 4bf92cc commit 964bf61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -758,10 +758,10 @@ function logout() {
const url = baseUrl();
const xhr = new XMLHttpRequest();
xhr.open("AUTH", url, true, ":");
xhr.send();
setTimeout(() => {
xhr.onload = () => {
location.href = url;
}, 200);
}
xhr.send();
}

/**
Expand Down

0 comments on commit 964bf61

Please sign in to comment.