refactor: improve logout at asserts/index.js (#440)
This commit is contained in:
parent
4bf92cc47a
commit
964bf61c37
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue