forked from Archives/Athou_commafeed
only reject response if status is 401
This commit is contained in:
@@ -32,8 +32,9 @@ app.config([
|
|||||||
var status = response.status;
|
var status = response.status;
|
||||||
if (status == 401) {
|
if (status == 401) {
|
||||||
$injector.get('$state').transitionTo('welcome');
|
$injector.get('$state').transitionTo('welcome');
|
||||||
|
return $q.reject(response);
|
||||||
}
|
}
|
||||||
return $q.reject(response);
|
return response;
|
||||||
};
|
};
|
||||||
|
|
||||||
var promise = function(promise) {
|
var promise = function(promise) {
|
||||||
|
|||||||
Reference in New Issue
Block a user