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() {
cb(BR.Util.getError(xhr));
};
xhr.send();
try {
xhr.send();
} catch(e) {
cb(e);
}
},
getError: function(xhr) {