diff --git a/content/treestyletab/bookmarksOverlay.js b/content/treestyletab/bookmarksOverlay.js index 476959a4..16f654da 100644 --- a/content/treestyletab/bookmarksOverlay.js +++ b/content/treestyletab/bookmarksOverlay.js @@ -181,7 +181,7 @@ var TreeStyleTabBookmarksService = { init : function TSTBMService_init() { window.removeEventListener('load', this, false); - + if (!('PlacesUIUtils' in window)) return; eval('PlacesUIUtils._openTabset = '+ @@ -195,7 +195,7 @@ var TreeStyleTabBookmarksService = { 'urls.push(item.uri);', '$& ids.push(item.id);' ).replace( - /(browserWindow\.getBrowser\(\)\.loadTabs\([^;]+\);)/, + /(browserWindow\.(?:getBrowser\(\)|gBrowser)\.loadTabs\([^;]+\);)/,