Arcader7171 commited on
Commit
7a5e535
·
verified ·
1 Parent(s): 2b3025f

Update static/scripts/login.js

Browse files
Files changed (1) hide show
  1. 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
- alert("An unknown error occured");
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
  }