Fix Page Error

This commit is contained in:
thororen1234 2024-09-01 22:22:58 -04:00
parent 425c8e807b
commit eb054f3f57

View file

@ -290,11 +290,11 @@ page.on("console", async e => {
});
page.on("error", e => {
if (e.message.includes("the network is offline")) return;
console.error("[Error]", e.message);
});
page.on("pageerror", e => {
if (e.message.includes("Sentry successfully disabled")) return;
if (e.message.includes("the network is offline")) return;
if (!e.message.startsWith("Object") && !e.message.includes("Cannot find module")) {
console.error("[Page Error]", e.message);