fix: notrack failing patches (#1857)
This commit is contained in:
parent
cb2532d22c
commit
4d8e4e62ca
1 changed files with 5 additions and 4 deletions
|
@ -47,16 +47,17 @@ export default definePlugin({
|
||||||
replace: "this._intervalId=undefined&&"
|
replace: "this._intervalId=undefined&&"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /(?<=increment=function\(\i\){)/,
|
match: /(increment\(\i\){)/,
|
||||||
replace: "return;"
|
replace: "$1return;"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: ".installedLogHooks)",
|
find: ".installedLogHooks)",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /if\(\i\.getDebugLogging\(\)&&!\i\.installedLogHooks\)/,
|
// if getDebugLogging() returns false, the hooks don't get installed.
|
||||||
replace: "if(false)"
|
match: "getDebugLogging(){",
|
||||||
|
replace: "getDebugLogging(){return false;"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue