diff --git a/chrome/content/zotero/xpcom/recognizePDF.js b/chrome/content/zotero/xpcom/recognizePDF.js index 3296a09269..b83e376453 100644 --- a/chrome/content/zotero/xpcom/recognizePDF.js +++ b/chrome/content/zotero/xpcom/recognizePDF.js @@ -302,9 +302,9 @@ Zotero.RecognizePDF = new function () { } try { - zp = Zotero.getActiveZoteroPane(); - if (selectParent && zp && zp.Zotero_Tabs.selectedID != 'zotero-pane') { - await zp.selectItem(parentItem.id); + let win = Zotero.getMainWindow(); + if (selectParent && win && win.Zotero_Tabs.selectedID != 'zotero-pane') { + await win.ZoteroPane.selectItem(parentItem.id); } } catch (e) { diff --git a/pdf-worker b/pdf-worker index fedade7ffd..035410a4b2 160000 --- a/pdf-worker +++ b/pdf-worker @@ -1 +1 @@ -Subproject commit fedade7ffde74e281d11205f02acfac2c1c1376e +Subproject commit 035410a4b21b790d5ab058cc376f5650be21cf5a