Remove the unnecessary buf to Uint8Array conversion
This commit is contained in:
parent
b0b11cfcf5
commit
80da0fbb56
1 changed files with 0 additions and 3 deletions
|
@ -516,9 +516,6 @@ class ReaderInstance {
|
|||
throw new Error(`The file "${path}" is too large`);
|
||||
}
|
||||
let buf = await OS.File.read(path, {});
|
||||
// TODO during buf -> data object migration: Do we actually need to get the underlying buffer and wrap it
|
||||
// in a new Uint8Array?
|
||||
buf = new Uint8Array(new Uint8Array(buf).buffer);
|
||||
let baseURI = `zotero://attachment/${Zotero.API.getLibraryPrefix(item.libraryID)}/items/${item.key}/`;
|
||||
return {
|
||||
buf,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue