This commit is contained in:
Simon Kornblith 2012-10-09 18:29:21 -04:00
parent 1ad5b9fd63
commit 4535bb5315

View file

@ -351,7 +351,11 @@ Zotero.Attachments = new function(){
var nsIURL = Components.classes["@mozilla.org/network/standard-url;1"]
.createInstance(Components.interfaces.nsIURL);
nsIURL.spec = url;
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;
}