Skip to content

Commit

Permalink
item测试为空
Browse files Browse the repository at this point in the history
  • Loading branch information
zzlb0224 committed Jul 20, 2024
1 parent bbc2552 commit 2a3d924
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/modules/annotations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,17 @@ function renderTextSelectionPopup(event: _ZoteroTypes.Reader.EventParams<"render
// })
const item = Zotero.Items.get(reader.itemID!).parentItem; //ZoteroPane.getSelectedItems()[0]
Zotero.refs_item = item;
//@ts-ignore IF11
ztoolkit.log(
item,
"显示IF",
item.getField("IF"),
item.getExtraField("IF"),
ztoolkit.ExtraField.getExtraFields(item),
ztoolkit.ExtraField.getExtraField(item, "IF"),
);
if (item) {
//@ts-ignore IF11
ztoolkit.log(
item,
"显示IF",
item.getField("extra"),
item.getExtraField("IF"),
ztoolkit.ExtraField.getExtraFields(item),
ztoolkit.ExtraField.getExtraField(item, "IF"),
);
}
Zotero.ref_reader = reader;
Zotero.ref_reader_annotationManager = reader._annotationManager;
Zotero.ref_reader_keyboardManager = reader._keyboardManager;
Expand Down

0 comments on commit 2a3d924

Please sign in to comment.