Fx60: Fix attachment download

This commit is contained in:
Dan Stillman 2019-08-23 02:17:23 -04:00
parent af7932e59b
commit 732bb23c33

View file

@ -857,15 +857,11 @@ Zotero.Attachments = new function(){
} }
wbp.progressListener = new Zotero.WebProgressFinishListener(() => resolve()); 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 = {}; var headers = {};
if (options.referrer) { if (options.referrer) {
headers.Referer = 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) { if (options.isPDF) {