mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-31 03:33:36 -05:00
Reporter: Revert everything but args
This commit is contained in:
parent
c350aab84b
commit
2f6700192f
1 changed files with 102 additions and 105 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue