From 661ce4fc1d8e406f2bb9e121007b48ce8c2203b4 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 10 Jan 2019 14:37:43 +0100 Subject: [PATCH] Ensure we callback if the request was killed by the browser --- src/js/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();