diff --git a/chrome/content/zotero/locateMenu.js b/chrome/content/zotero/locateMenu.js index 6954294fc..e324b9e4f 100644 --- a/chrome/content/zotero/locateMenu.js +++ b/chrome/content/zotero/locateMenu.js @@ -100,7 +100,7 @@ var Zotero_LocateMenu = new function() { */ function _getInstallableLocateEngines() { var locateEngines = []; - if(!Zotero_Browser) return locateEngines; + if(!window.Zotero_Browser || !window.Zotero_Browser.tabbrowser) return locateEngines; var links = Zotero_Browser.tabbrowser.selectedBrowser.contentDocument.getElementsByTagName("link"); for each(var link in links) {