mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59:02 +03:00
refactor: improve logout at asserts/index.js (#440)
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user