Update a call to a deprecated function in Mendeley import

This commit is contained in:
Tom Najdek 2025-07-31 16:04:06 +02:00
parent a5cdd8d5aa
commit efadc21cdc
No known key found for this signature in database
GPG key ID: EEC61A7B4C667D77

View file

@ -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) {