Initialize correctly on Firefox 15 and olders

This commit is contained in:
Piro / SHIMODA Hiroshi 2012-05-25 23:54:29 +09:00
parent da657f8950
commit 5769d05897

View File

@ -15,7 +15,7 @@ var TreeStyleTabWindowHelper = {
}
else if ('BrowserStartup' in window) { // legacy code for Firefox 15 and older
source = window.BrowserStartup.toSource();
target = 'gBrowserInit.onLoad';
target = 'BrowserStartup';
}
if (source.indexOf('!MultipleTabService.tearOffSelectedTabsFromRemote()') > -1) {
eval(target+' = '+source.replace(