Fix regression for broken "Snow in Page"
Fixes #2764
Regression from 7ec54fd
This commit is contained in:
parent
0eaf5887ea
commit
8ca7356489
1 changed files with 3 additions and 1 deletions
|
@ -1376,7 +1376,9 @@ class Reader {
|
||||||
this.triggerAnnotationsImportCheck(itemID);
|
this.triggerAnnotationsImportCheck(itemID);
|
||||||
let reader;
|
let reader;
|
||||||
|
|
||||||
if (!allowDuplicate) {
|
// If duplicating is not allowed, and no reader instance is loaded for itemID,
|
||||||
|
// try to find an unloaded tab and select it. Zotero.Reader.open will then be called again
|
||||||
|
if (!allowDuplicate && !this._readers.find(r => r._itemID === itemID)) {
|
||||||
let win = Zotero.getMainWindow();
|
let win = Zotero.getMainWindow();
|
||||||
if (win) {
|
if (win) {
|
||||||
let existingTabID = win.Zotero_Tabs.getTabIDByItemID(itemID);
|
let existingTabID = win.Zotero_Tabs.getTabIDByItemID(itemID);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue