This commit is contained in:
parent
1ad5b9fd63
commit
4535bb5315
1 changed files with 5 additions and 1 deletions
|
@ -351,7 +351,11 @@ Zotero.Attachments = new function(){
|
||||||
var nsIURL = Components.classes["@mozilla.org/network/standard-url;1"]
|
var nsIURL = Components.classes["@mozilla.org/network/standard-url;1"]
|
||||||
.createInstance(Components.interfaces.nsIURL);
|
.createInstance(Components.interfaces.nsIURL);
|
||||||
nsIURL.spec = url;
|
nsIURL.spec = url;
|
||||||
wbp.saveURI(nsIURL, null, null, null, null, file);
|
try {
|
||||||
|
wbp.saveURI(nsIURL, null, null, null, null, file);
|
||||||
|
} catch(e if e.name === "NS_ERROR_XPC_NOT_ENOUGH_ARGS") {
|
||||||
|
wbp.saveURI(nsIURL, null, null, null, null, file, null);
|
||||||
|
}
|
||||||
|
|
||||||
return attachmentItem;
|
return attachmentItem;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue