Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Commit

Permalink
status 403/401 generated on logout should be exempted from alert
Browse files Browse the repository at this point in the history
  • Loading branch information
Zlash65 committed Jul 7, 2018
1 parent 209077c commit 018acf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/js/desk.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ window.desk = {
}

}).error(function(e) {
alert(`${localStorage.server} failed with status ${e.status}`);
if(![403, 401].includes(parseInt(e.status))) {
alert(`${localStorage.server} failed with status ${e.status}`);
}
desk.logout();
});
},
Expand Down

0 comments on commit 018acf2

Please sign in to comment.