mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-09 06:47:59 -06:00
Add spinner to login page
This commit is contained in:
@@ -37,6 +37,8 @@ function startHttpRequest(callback) {
|
||||
if (xmlHttp.readyState !== 4) return;
|
||||
|
||||
if (xmlHttp.status == 200) callback(true, xmlHttp.responseText);
|
||||
else if (xmlHttp.status == 401) callback(false, "Unauthorized");
|
||||
else if (xmlHttp.status == 500) callback(false, "Internal Server Error");
|
||||
else callback(false, xmlHttp.responseText);
|
||||
};
|
||||
return xmlHttp;
|
||||
|
||||
Reference in New Issue
Block a user