Don't duplicate tab on reloading

This commit is contained in:
Piro / YUKI Hiroshi 2012-09-15 12:19:07 +09:00
parent d7121d9042
commit f4d43a5d93

View File

@ -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), $&)'
));
}
}