fix: notrack failing patches (#1857)

This commit is contained in:
megumin 2023-10-25 14:41:57 +01:00 committed by V
parent cb2532d22c
commit 4d8e4e62ca

@ -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;"
} }
}, },
] ]