catch cross-origin exception for local file:// urls (profiles)

This commit is contained in:
Norbert Renner 2015-05-22 14:25:00 +02:00
parent d30684b6c8
commit 109eeb471c

View file

@ -14,7 +14,11 @@ BR.Util = {
xhr.onerror = function() { xhr.onerror = function() {
cb(BR.Util.getError(xhr)); cb(BR.Util.getError(xhr));
}; };
try {
xhr.send(); xhr.send();
} catch(e) {
cb(e);
}
}, },
getError: function(xhr) { getError: function(xhr) {