update changes around "tabs on top" implementation for Firefox 12

This commit is contained in:
SHIMODA Hiroshi 2012-01-13 12:34:37 +09:00
parent 07b0e15aaa
commit df0fcb6851

View File

@ -377,7 +377,13 @@ var TreeStyleTabWindowHelper = {
));
}
if ('TabsOnTop' in window && TabsOnTop.syncCommand) {
if ('TabsOnTop' in window && TabsOnTop.syncUI) { // Firefox 12 or later
eval('TabsOnTop.syncUI = '+TabsOnTop.syncUI.toSource().replace(
/(\}\)?)$/,
'gBrowser.treeStyleTab.onTabsOnTopSyncCommand(enabled); $&'
));
}
if ('TabsOnTop' in window && TabsOnTop.syncCommand) { // Firefox 4-11
eval('TabsOnTop.syncCommand = '+TabsOnTop.syncCommand.toSource().replace(
/(\}\)?)$/,
'gBrowser.treeStyleTab.onTabsOnTopSyncCommand(enabled); $&'