mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
dev(e2e): Log and ignore net errors (#9559)
This commit is contained in:
@@ -27,12 +27,13 @@ const consoleLogWatcher = (msg: ConsoleMessage) => {
|
||||
|
||||
// List of error messages to ignore
|
||||
const ignoreErrors = [
|
||||
/net::ERR_CONNECTION_REFUSED/,
|
||||
/net/,
|
||||
/^Error with Permissions-Policy header:/
|
||||
];
|
||||
|
||||
// If the text matches any of the ignoreErrors, return early
|
||||
if (ignoreErrors.some(error => text.match(error))) {
|
||||
console.log(`WARN:: ${text}\n`)
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user