mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-08 06:03:03 -04: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() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
await Promise.all([
|
||||||
page.on("console", async e => {
|
page.on("console", async e => {
|
||||||
const level = e.type();
|
const level = e.type();
|
||||||
const rawArgs = e.args();
|
const rawArgs = e.args();
|
||||||
|
|
||||||
|
@ -288,10 +288,11 @@ page.on("console", async e => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}),
|
||||||
|
|
||||||
page.on("error", e => console.error("[Error]", e.message));
|
page.on("error", e => console.error("[Error]", e.message)),
|
||||||
page.on("pageerror", e => {
|
|
||||||
|
page.on("pageerror", e => {
|
||||||
if (e.message.includes("Sentry successfully disabled")) return;
|
if (e.message.includes("Sentry successfully disabled")) return;
|
||||||
|
|
||||||
if (!e.message.startsWith("Object") && !e.message.includes("Cannot find module")) {
|
if (!e.message.startsWith("Object") && !e.message.includes("Cannot find module")) {
|
||||||
|
@ -300,7 +301,8 @@ page.on("pageerror", e => {
|
||||||
} else {
|
} else {
|
||||||
report.ignoredErrors.push(e.message);
|
report.ignoredErrors.push(e.message);
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
|
]);
|
||||||
|
|
||||||
async function reporterRuntime(token: string) {
|
async function reporterRuntime(token: string) {
|
||||||
Vencord.Webpack.waitFor(
|
Vencord.Webpack.waitFor(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue