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&&"
|
||||
},
|
||||
{
|
||||
match: /(?<=increment=function\(\i\){)/,
|
||||
replace: "return;"
|
||||
match: /(increment\(\i\){)/,
|
||||
replace: "$1return;"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
find: ".installedLogHooks)",
|
||||
replacement: {
|
||||
match: /if\(\i\.getDebugLogging\(\)&&!\i\.installedLogHooks\)/,
|
||||
replace: "if(false)"
|
||||
// if getDebugLogging() returns false, the hooks don't get installed.
|
||||
match: "getDebugLogging(){",
|
||||
replace: "getDebugLogging(){return false;"
|
||||
}
|
||||
},
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue