Don't apply hack multiple times
This commit is contained in:
parent
0e3b91c362
commit
104c46d6aa
@ -533,8 +533,11 @@ TreeStyleTabWindowHelper.overrideExtensionsAfterBrowserInit = function TSTWH_ove
|
|||||||
for (let i = 0, maxi = methods.length; i < maxi; i++)
|
for (let i = 0, maxi = methods.length; i < maxi; i++)
|
||||||
{
|
{
|
||||||
let method = methods[i];
|
let method = methods[i];
|
||||||
if (!(method in LinkyContext.prototype)) continue;
|
if (!(method in LinkyContext.prototype) ||
|
||||||
|
LinkyContext.prototype['__treestyletab__' + method])
|
||||||
|
continue;
|
||||||
let orig = LinkyContext.prototype[method];
|
let orig = LinkyContext.prototype[method];
|
||||||
|
LinkyContext.prototype['__treestyletab__' + method] = orig;
|
||||||
LinkyContext.prototype[method] = function(...aArgs) {
|
LinkyContext.prototype[method] = function(...aArgs) {
|
||||||
TreeStyleTabService.readyToOpenChildTabNow(null, true);
|
TreeStyleTabService.readyToOpenChildTabNow(null, true);
|
||||||
return orig.call(this, ...aArgs);
|
return orig.call(this, ...aArgs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user