fix locate menu in tab and standalone
This commit is contained in:
parent
296c76ff3b
commit
1d2395db0c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user