Remove rougue import

This commit is contained in:
Gabe Kangas
2022-03-16 17:42:39 -07:00
parent babbcecc9c
commit 689b6feef2
2 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,10 @@
async function listenForErrors(browser, page) {
const ignoredErrors = ['ERR_ABORTED', 'MEDIA_ERR_SRC_NOT_SUPPORTED', '404'];
const ignoredErrors = [
'ERR_ABORTED',
'MEDIA_ERR_SRC_NOT_SUPPORTED',
'404',
'JSHandle@error',
];
// Emitted when the page emits an error event (for example, the page crashes)
page.on('error', (error) => {