Skip to content

Commit

Permalink
Use already known browserWindow in onClickButton
Browse files Browse the repository at this point in the history
  • Loading branch information
JustOff committed Feb 24, 2018
1 parent b0118af commit ae43988
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,7 @@ LullTheTabs.prototype = {

onClickButton: function(aEvent) {
if (aEvent.ctrlKey || aEvent.metaKey) {
let mrw = Services.wm.getMostRecentWindow("navigator:browser");
mrw.BrowserOpenAddonsMgr("addons://detail/[email protected]/preferences");
this.browserWindow.BrowserOpenAddonsMgr("addons://detail/[email protected]/preferences");
} else {
this.unloadTab(this.tabBrowser.selectedTab);
}
Expand Down

0 comments on commit ae43988

Please sign in to comment.