From f4d43a5d934e24f92e0cfee1c6e71a0c3a0f1756 Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Sat, 15 Sep 2012 12:19:07 +0900 Subject: [PATCH] Don't duplicate tab on reloading --- content/treestyletab/windowHelper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), $&)' )); } }