mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Pass imported-URL attachment URL to reader (#4820)
This commit is contained in:
parent
7f26f246e7
commit
682cceca2d
1 changed files with 4 additions and 1 deletions
|
|
@ -563,7 +563,10 @@ class ReaderInstance {
|
|||
throw new Error(`The file "${path}" is too large`);
|
||||
}
|
||||
return {
|
||||
url: `zotero://attachment/${Zotero.API.getLibraryPrefix(item.libraryID)}/items/${item.key}/`
|
||||
url: `zotero://attachment/${Zotero.API.getLibraryPrefix(item.libraryID)}/items/${item.key}/`,
|
||||
importedFromURL: this._item.attachmentLinkMode === Zotero.Attachments.LINK_MODE_IMPORTED_URL
|
||||
? this._item.getField('url')
|
||||
: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue