From 5c92a9cbcebe7302b42406893fbb90908576fc09 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 4 Oct 2016 23:46:48 +0100 Subject: [PATCH] Workaround some browsers which don't tell the error when disconnected --- src/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 891cac3277..ece2be273a 100644 --- a/src/app.js +++ b/src/app.js @@ -413,7 +413,8 @@ var run = function () { } }) .fail(function (xhr, text, err) { - cb(err); + // NOTE: on some browsers, err equals to '' for certain errors (such as offline browser) + cb(err || 'Unknown transport error'); }); }