catch cross-origin exception for local file:// urls (profiles)
This commit is contained in:
parent
d30684b6c8
commit
109eeb471c
1 changed files with 5 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue