diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 0a707cd1..74d34598 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -898,10 +898,25 @@ catch(e) { !event || !($1) || !TreeStyleTabService.getTreePref('link.invertDefaultBehavior') || ( - TreeStyleTabService.checkToOpenChildTab(TreeStyleTabService.browser) && - (TreeStyleTabService.stopToOpenChildTab(TreeStyleTabService.browser), false) + TreeStyleTabService.readyToOpenChildTab(TreeStyleTabService.browser), + false ) - ) + ) // don't cancel child tab at this point, because I reuse the flag to load link after this block. + ]]> + ).replace( + 'return false;case 1:', + <> ) );