diff --git a/chrome/content/zotero/itemPane.js b/chrome/content/zotero/itemPane.js index d3d1e9e08..c5bd5d393 100644 --- a/chrome/content/zotero/itemPane.js +++ b/chrome/content/zotero/itemPane.js @@ -82,12 +82,16 @@ var ZoteroItemPane = new function() function onLoad() { + if (!Zotero || !Zotero.initialized) { + return; + } + _tabs = document.getElementById('zotero-view-tabs'); // Not in item pane, so skip the introductions if (!_tabs) { - return false; + return; } _dynamicFields = document.getElementById('zotero-editpane-dynamic-fields'); @@ -104,8 +108,6 @@ var ZoteroItemPane = new function() for(var i = 0; i @@ -350,7 +361,7 @@ oncommand="ZoteroPane.toggleDisplay();" label="Zotero" key="key_openZotero"/> - +