mirror of
https://github.com/zotero/zotero.git
synced 2026-09-19 00:01:31 +00:00
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…
Add table
Reference in a new issue