mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-30 19:23:29 -05:00
Do Promise All For Reporter
This commit is contained in:
parent
a576b736bb
commit
a8a0146765
1 changed files with 115 additions and 113 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue