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

Commit

Permalink
No longer need to look for rejection status of -1.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsura committed Sep 30, 2016
1 parent d39e12c commit 7b87581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArgusWeb/app/js/services/unauthorizedInterceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ angular.module('argus.services.interceptor', [])
.factory("UnauthorizedInterceptor", ['$q', '$location', 'Storage', function ($q, $location, Storage) {
return {
responseError: function (rejection) {
if (rejection.status === 401 || rejection.status <= 0) {
if (rejection.status === 401 || rejection.status === 0) {
var url = rejection.config.url;
var suffix = '/login';
if (url.indexOf(suffix, url.length - suffix.length) === -1) {
Expand Down

0 comments on commit 7b87581

Please sign in to comment.