Merge branch 'dev' into immediate-finds

This commit is contained in:
Nuckyz 2024-05-29 06:05:20 -03:00
commit 17b575070f
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -204,8 +204,13 @@ page.on("console", async e => {
report.badWebpackFinds.push(await rawArgs[1].jsonValue() as string);
}
if (isVencord) {
const args = await Promise.all(e.args().map(a => a.jsonValue()));
if (isVencord && level !== "error") {
let args: unknown[] = [];
try {
args = await Promise.all(e.args().map(a => a.jsonValue()));
} catch {
return;
}
const [, tag, message] = args as Array<string>;
const cause = await maybeGetError(e.args()[3]);