mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
This commit is contained in:
parent
a8efc1b874
commit
b41e2368a5
1 changed files with 5 additions and 1 deletions
|
|
@ -344,7 +344,11 @@ Zotero.Attachments = new function(){
|
|||
var nsIURL = Components.classes["@mozilla.org/network/standard-url;1"]
|
||||
.createInstance(Components.interfaces.nsIURL);
|
||||
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);
|
||||
}
|
||||
|
||||
if(callback) callback(attachmentItem);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue