mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
Update a call to a deprecated function in Mendeley import
This commit is contained in:
parent
a5cdd8d5aa
commit
efadc21cdc
1 changed files with 1 additions and 1 deletions
|
|
@ -823,7 +823,7 @@ Zotero_Import_Mendeley.prototype._fetchFile = async function (fileID, filePath)
|
|||
await Zotero.File.createDirectoryIfMissingAsync(fileDir);
|
||||
const xhr = await apiFetch(this._tokens, `files/${fileID}`, {}, {}, { responseType: 'blob', followRedirects: false });
|
||||
const uri = xhr.getResponseHeader('location');
|
||||
await Zotero.File.download(uri, filePath);
|
||||
await Zotero.HTTP.download(uri, filePath);
|
||||
|
||||
this._progress += 1;
|
||||
if (this._itemDone) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue