Fix broken stuff for discord update (#3349)

Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: Vending Machine <vendicated@riseup.net>
This commit is contained in:
sadan4 2025-04-04 16:46:01 -04:00 committed by GitHub
parent eeea8d9291
commit 478699d1b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 12 additions and 19 deletions

View file

@ -117,6 +117,7 @@ export default definePlugin({
this.settings.store.whitelistedLoggers?.split(";").map(x => x.trim()).forEach(logAllow.add.bind(logAllow));
},
Noop,
NoopLogger: () => NoopLogger,
shouldLog(logger: string, level: keyof AllowLevels) {
@ -148,15 +149,15 @@ export default definePlugin({
{
find: "is not a valid locale.",
replacement: {
match: /\i\.error\(""\.concat\(\i," is not a valid locale."\)\);/,
replace: ""
match: /\i\.error(?=\(""\.concat\(\i," is not a valid locale."\)\))/,
replace: "$self.Noop"
}
},
{
find: '"AppCrashedFatalReport: getLastCrash not supported."',
replacement: {
match: /console\.log\("AppCrashedFatalReport: getLastCrash not supported\."\);/,
replace: ""
match: /console\.log(?=\("AppCrashedFatalReport: getLastCrash not supported\."\))/,
replace: "$self.Noop"
}
},
{