Fix "win.ZoteroPane.document is undefined" when Zotero is set to start in tab mode and the Zotero tab has not yet been selected (missed code in last commit)
This commit is contained in:
parent
5cf451aa0e
commit
bc354b1435
|
@ -84,6 +84,8 @@ var ZoteroPane = new function()
|
|||
this.reportErrors = reportErrors;
|
||||
this.displayErrorMessage = displayErrorMessage;
|
||||
|
||||
this.document = document;
|
||||
|
||||
const COLLECTIONS_HEIGHT = 32; // minimum height of the collections pane and toolbar
|
||||
|
||||
var self = this;
|
||||
|
@ -98,7 +100,6 @@ var ZoteroPane = new function()
|
|||
*/
|
||||
function init()
|
||||
{
|
||||
this.document = document;
|
||||
if(!Zotero || !Zotero.initialized) return;
|
||||
|
||||
// Set "Report Errors..." label via property rather than DTD entity,
|
||||
|
|
Loading…
Reference in New Issue
Block a user