diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index 8f3d4dcb..89128eeb 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -299,8 +299,8 @@ var TreeStyleTabWindowHelper = { if (!source || !/^\(?function (BrowserReloadOrDuplicate)/.test(source)) continue; eval(func+' = '+source.replace( - /((?:openUILinkIn|duplicateTabIn)\()/g, - 'TreeStyleTabService.onBeforeTabReloadOrDuplicate(where); $&' + /((?:openUILinkIn|duplicateTabIn)\([^\)]+\))/g, + '(TreeStyleTabService.onBeforeTabReloadOrDuplicate(where), $&)' )); } }