diff --git a/chrome/content/zotero/xpcom/reader.js b/chrome/content/zotero/xpcom/reader.js index b388c2d621..ce2657d18d 100644 --- a/chrome/content/zotero/xpcom/reader.js +++ b/chrome/content/zotero/xpcom/reader.js @@ -531,14 +531,8 @@ class ReaderInstance { if (fileSize > ARRAYBUFFER_MAX_LENGTH) { throw new Error(`The file "${path}" is too large`); } - let buf; - if (this._type !== 'pdf') { - buf = await OS.File.read(path, {}); - } - let baseURI = `zotero://attachment/${Zotero.API.getLibraryPrefix(item.libraryID)}/items/${item.key}/`; return { - buf, - baseURI + url: `zotero://attachment/${Zotero.API.getLibraryPrefix(item.libraryID)}/items/${item.key}/` }; } diff --git a/reader b/reader index 81863a19d7..c13fd93c26 160000 --- a/reader +++ b/reader @@ -1 +1 @@ -Subproject commit 81863a19d7f62685e6c3ab8ce893647b9dfb7351 +Subproject commit c13fd93c26ea118f48f2a4c0495e21131b4e3180