diff --git a/src/components/itemPane/citationsBox.tsx b/src/components/itemPane/citationsBox.tsx index bfd6e18..74eb34a 100644 --- a/src/components/itemPane/citationsBox.tsx +++ b/src/components/itemPane/citationsBox.tsx @@ -85,6 +85,9 @@ function CitationsBox(props: { const args = { citation: citation, addon: addon, + ZoteroPane: ZoteroPane, + goUpdateGlobalEditMenuItems: + window.document.defaultView!.goUpdateGlobalEditMenuItems, }; const retVals: { [key: string]: any } = {}; window.openDialog( diff --git a/src/dialogs/editor/index.tsx b/src/dialogs/editor/index.tsx index 4dee29e..7edae03 100644 --- a/src/dialogs/editor/index.tsx +++ b/src/dialogs/editor/index.tsx @@ -6,7 +6,13 @@ import Citation from "../../cita/citation"; import Wikicite from "../../cita/wikicite"; let citation: Citation; -({ citation, addon: window.addon } = (window as any).arguments[0]); +({ + citation, + addon: window.addon, + ZoteroPane: window.ZoteroPane, + goUpdateGlobalEditMenuItems: + window.document.defaultView!.goUpdateGlobalEditMenuItems, +} = (window as any).arguments[0]); const retVals: { item?: Zotero.Item } = (window as any).arguments[1]; let newItem: ItemWrapper;