Make compatible with Open Bookmark in New Tab 2.x
This commit is contained in:
parent
e41d737fe2
commit
5be6d36583
@ -242,6 +242,8 @@ var TreeStyleTabBookmarksService = inherit(TreeStyleTabService, {
|
|||||||
let method = (TreeStyleTabUtils.getTreePref('compatibility.TabUtilities') && PlacesUIUtils.TU__openTabset) ?
|
let method = (TreeStyleTabUtils.getTreePref('compatibility.TabUtilities') && PlacesUIUtils.TU__openTabset) ?
|
||||||
'TU__openTabset' :
|
'TU__openTabset' :
|
||||||
'_openTabset';
|
'_openTabset';
|
||||||
|
if (PlacesUIUtils.__openbookmarkintab__openTabset)
|
||||||
|
method = '__openbookmarkintab__openTabset';
|
||||||
TreeStyleTabUtils.doPatching(PlacesUIUtils[method], 'PlacesUIUtils.'+method, function(aName, aSource) {
|
TreeStyleTabUtils.doPatching(PlacesUIUtils[method], 'PlacesUIUtils.'+method, function(aName, aSource) {
|
||||||
var patched = eval(aName+' = '+aSource.replace(
|
var patched = eval(aName+' = '+aSource.replace(
|
||||||
/(function[^\(]*\([^\)]+)(\))/,
|
/(function[^\(]*\([^\)]+)(\))/,
|
||||||
|
Loading…
Reference in New Issue
Block a user