Reporter: Include page errors; load wasm chunks

This commit is contained in:
Nuckyz 2024-06-06 00:47:57 -03:00
parent 0b611a2911
commit 43b6933fe6
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
3 changed files with 18 additions and 8 deletions

View file

@ -286,7 +286,14 @@ page.on("console", async e => {
});
page.on("error", e => console.error("[Error]", e.message));
page.on("pageerror", e => console.error("[Page Error]", e.message));
page.on("pageerror", e => {
if (!e.message.startsWith("Object") && !e.message.includes("Cannot find module")) {
console.error("[Page Error]", e.message);
report.otherErrors.push(e.message);
} else {
report.ignoredErrors.push(e.message);
}
});
async function reporterRuntime(token: string) {
Vencord.Webpack.waitFor(