Commit 63706605 authored by Alex Beregszaszi's avatar Alex Beregszaszi Committed by GitHub

Merge pull request #257 from ethereum/workaround-browsers

Workaround some browsers which don't tell the error when disconnected
parents 26d56afa 5c92a9cb
......@@ -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');
});
}
......
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