Spaces:
Sleeping
Sleeping
Update static/scripts/login.js
Browse files- static/scripts/login.js +1 -1
static/scripts/login.js
CHANGED
|
@@ -11,7 +11,7 @@ function login() {
|
|
| 11 |
if (response.status == 401) {
|
| 12 |
alert(`Error - ${response.statusText}`);
|
| 13 |
} else if (!response.ok) {
|
| 14 |
-
|
| 15 |
} else if (response.ok) {
|
| 16 |
window.location.reload();
|
| 17 |
}
|
|
|
|
| 11 |
if (response.status == 401) {
|
| 12 |
alert(`Error - ${response.statusText}`);
|
| 13 |
} else if (!response.ok) {
|
| 14 |
+
return;
|
| 15 |
} else if (response.ok) {
|
| 16 |
window.location.reload();
|
| 17 |
}
|