Fx60: Fix attachment download
This commit is contained in:
parent
af7932e59b
commit
732bb23c33
1 changed files with 1 additions and 5 deletions
|
@ -857,15 +857,11 @@ Zotero.Attachments = new function(){
|
|||
}
|
||||
|
||||
wbp.progressListener = new Zotero.WebProgressFinishListener(() => resolve());
|
||||
|
||||
var nsIURL = Components.classes["@mozilla.org/network/standard-url;1"]
|
||||
.createInstance(Components.interfaces.nsIURL);
|
||||
nsIURL.spec = url;
|
||||
var headers = {};
|
||||
if (options.referrer) {
|
||||
headers.Referer = options.referrer;
|
||||
}
|
||||
Zotero.Utilities.Internal.saveURI(wbp, nsIURL, path, headers);
|
||||
Zotero.Utilities.Internal.saveURI(wbp, url, path, headers);
|
||||
});
|
||||
|
||||
if (options.isPDF) {
|
||||
|
|
Loading…
Reference in a new issue