diff --git a/chrome/content/zotero/ZoteroProtocolHandler.jsm b/chrome/content/zotero/ZoteroProtocolHandler.jsm index 78c9018156..51bedbc6ab 100644 --- a/chrome/content/zotero/ZoteroProtocolHandler.jsm +++ b/chrome/content/zotero/ZoteroProtocolHandler.jsm @@ -895,12 +895,14 @@ function ZoteroProtocolHandler() { return; } - var zp = Zotero.getActiveZoteroPane(); + var win = Zotero.getMainWindow(); + var zp = win?.ZoteroPane; if (!zp) { // TEMP throw new Error("Pane not open"); } + win.Zotero_Tabs.select('zotero-pane'); if (params.objectType == 'collection') { return zp.collectionsView.selectCollection(results[0].id); }