Reporter: Revert everything but args

This commit is contained in:
thororen1234 2024-08-10 00:10:29 -04:00
parent c350aab84b
commit 2f6700192f

View file

@ -43,7 +43,6 @@ const browser = await pup.launch({
'--shm-size=4gb'
]
});
const page = await browser.newPage();
await page.setUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36");
await page.setBypassCSP(true);
@ -184,8 +183,8 @@ async function printReport() {
});
}
}
await Promise.all([
page.on("console", async e => {
page.on("console", async e => {
const level = e.type();
const rawArgs = e.args();
@ -289,11 +288,10 @@ await Promise.all([
}
}
}
}),
});
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")) {
@ -302,8 +300,7 @@ await Promise.all([
} else {
report.ignoredErrors.push(e.message);
}
})
]);
});
async function reporterRuntime(token: string) {
Vencord.Webpack.waitFor(