diff --git a/assets/index.js b/assets/index.js index ab29f8b..5141649 100644 --- a/assets/index.js +++ b/assets/index.js @@ -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(); } /**