ConsoleJanitor: Remove old patch and add getLastCrash (#3151)

This commit is contained in:
sadan4 2025-01-24 19:01:12 -05:00 committed by GitHub
parent 79cbfe96c8
commit 4036fbab92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,10 +95,9 @@ export default definePlugin({
}
},
{
find: 'console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");',
all: true,
find: '"AppCrashedFatalReport: getLastCrash not supported."',
replacement: {
match: /console\.warn\("\[DEPRECATED\] Please use `subscribeWithSelector` middleware"\);/,
match: /console\.log\("AppCrashedFatalReport: getLastCrash not supported\."\);/,
replace: ""
}
},