mirror of
https://github.com/RobinRMC/VencordPlus.git
synced 2025-05-11 09:55:44 +02:00
Reporter: Include page errors; load wasm chunks
This commit is contained in:
parent
0b611a2911
commit
43b6933fe6
3 changed files with 18 additions and 8 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue