Commit 5c92a9cb authored by Alex Beregszaszi's avatar Alex Beregszaszi

Workaround some browsers which don't tell the error when disconnected

parent 26d56afa
...@@ -413,7 +413,8 @@ var run = function () { ...@@ -413,7 +413,8 @@ var run = function () {
} }
}) })
.fail(function (xhr, text, err) { .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');
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment