mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
Fix Zotero.HTTP.download() for fx115
Blob#bytes() was introduced in fx128.
This commit is contained in:
parent
4b78b2c130
commit
0542010659
1 changed files with 3 additions and 1 deletions
|
|
@ -603,7 +603,9 @@ Zotero.HTTP = new function() {
|
|||
noMock: true
|
||||
}
|
||||
);
|
||||
var bytes = await IOUtils.write(path, await req.response.bytes());
|
||||
var bytes = new Uint8Array(await req.response.arrayBuffer());
|
||||
await IOUtils.write(path, bytes);
|
||||
|
||||
Zotero.debug(`Saved file to ${path} (${bytes} byte${bytes != 1 ? 's' : ''})`);
|
||||
return req;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue