diff --git a/content/treestyletab/hacks.js b/content/treestyletab/hacks.js index f305dbc6..f1125ca8 100644 --- a/content/treestyletab/hacks.js +++ b/content/treestyletab/hacks.js @@ -700,4 +700,11 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() { ); } + // LastTab + if ('LastTab' in window) { + TreeStyleTabService.registerTabFocusAllowance(function(aTabBrowser) { + return !aTabBrowser.treeStyleTab.getPref('extensions.lasttab.focusLastTabOnClose'); + }); + } + };