mirror of
https://github.com/zotero/zotero.git
synced 2026-10-07 02:58:09 +00:00
Don't log entire byte array when downloading files
This commit is contained in:
parent
56f182f816
commit
bbf4692b99
1 changed files with 2 additions and 1 deletions
|
|
@ -671,8 +671,9 @@ Zotero.HTTP = new function() {
|
|||
);
|
||||
var bytes = new Uint8Array(await req.response.arrayBuffer());
|
||||
await IOUtils.write(path, bytes);
|
||||
var byteLength = bytes.byteLength;
|
||||
|
||||
Zotero.debug(`Saved file to ${path} (${bytes} byte${bytes != 1 ? 's' : ''})`);
|
||||
Zotero.debug(`Saved file to ${path} (${byteLength} byte${byteLength != 1 ? 's' : ''})`);
|
||||
return req;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue