Improve navigation to specific PDF page
This commit is contained in:
parent
4b622f074d
commit
e409c8bc27
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ class EditorInstance {
|
|||
if (!item) {
|
||||
return;
|
||||
}
|
||||
let attachments = Zotero.Items.get(item.getAttachments());
|
||||
let attachments = Zotero.Items.get(item.getAttachments()).filter(x => x.isPDFAttachment());
|
||||
if (citationItem.locator && attachments.length === 1) {
|
||||
await Zotero.Reader.open(attachments[0].id, { pageLabel: citationItem.locator });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue