From 1d2395db0c22b584135e7163f169561dc68248db Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 9 Feb 2011 23:16:23 +0000 Subject: [PATCH] fix locate menu in tab and standalone --- chrome/content/zotero/locateMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {