diff --git a/src/js/client.js b/src/js/client.js index dceff9f80..ee81c4389 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -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();