Make compatible with Open Bookmark in New Tab 2.x

This commit is contained in:
YUKI Hiroshi 2016-01-21 13:49:16 +09:00
parent e41d737fe2
commit 5be6d36583

View File

@ -242,6 +242,8 @@ var TreeStyleTabBookmarksService = inherit(TreeStyleTabService, {
let method = (TreeStyleTabUtils.getTreePref('compatibility.TabUtilities') && PlacesUIUtils.TU__openTabset) ?
'TU__openTabset' :
'_openTabset';
if (PlacesUIUtils.__openbookmarkintab__openTabset)
method = '__openbookmarkintab__openTabset';
TreeStyleTabUtils.doPatching(PlacesUIUtils[method], 'PlacesUIUtils.'+method, function(aName, aSource) {
var patched = eval(aName+' = '+aSource.replace(
/(function[^\(]*\([^\)]+)(\))/,