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 url = baseUrl();
|
||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
xhr.open("AUTH", url, true, ":");
|
xhr.open("AUTH", url, true, ":");
|
||||||
xhr.send();
|
xhr.onload = () => {
|
||||||
setTimeout(() => {
|
|
||||||
location.href = url;
|
location.href = url;
|
||||||
}, 200);
|
}
|
||||||
|
xhr.send();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue