zotero://select handler: Switch to library tab (#4204)
This commit is contained in:
parent
56980080ad
commit
eca5f6bea1
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue