Do Promise All For Reporter

This commit is contained in:
thororen1234 2024-08-09 23:53:33 -04:00
parent a576b736bb
commit a8a0146765

View file

@ -183,8 +183,8 @@ async function printReport() {
});
}
}
page.on("console", async e => {
await Promise.all([
page.on("console", async e => {
const level = e.type();
const rawArgs = e.args();
@ -288,10 +288,11 @@ page.on("console", async e => {
}
}
}
});
}),
page.on("error", e => console.error("[Error]", e.message));
page.on("pageerror", e => {
page.on("error", e => console.error("[Error]", e.message)),
page.on("pageerror", e => {
if (e.message.includes("Sentry successfully disabled")) return;
if (!e.message.startsWith("Object") && !e.message.includes("Cannot find module")) {
@ -300,7 +301,8 @@ page.on("pageerror", e => {
} else {
report.ignoredErrors.push(e.message);
}
});
})
]);
async function reporterRuntime(token: string) {
Vencord.Webpack.waitFor(