Ensure we callback if the request was killed by the browser
This commit is contained in:
@@ -33,7 +33,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
// handle request killed by browser (eg. cors issue)
|
||||
if (data === null && status === -1) {
|
||||
client.offline = true;
|
||||
return;
|
||||
return callback(new ClientError('Request cancelled by browser'));
|
||||
}
|
||||
|
||||
if (status === 401) return client.login();
|
||||
|
||||
Reference in New Issue
Block a user