Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Exception: undefined:undefined #11

Open
mh4ck opened this issue Dec 27, 2021 · 0 comments
Open

Uncaught Exception: undefined:undefined #11

mh4ck opened this issue Dec 27, 2021 · 0 comments

Comments

@mh4ck
Copy link

mh4ck commented Dec 27, 2021

Hi, i've implemented everything like it is described in the readme and added my filter this way:

.filter({
    urls: ['*'],
  },
  function (details, cb) {
    let blockTypes = ['mp4', 'webm', 'weba', 'jpg', 'png', 'gif', 'jpeg'];
    if (blockTypes.indexOf(details.type) !== -1) {
      return cb({ cancel: true });
    }
    return cb({ cancel: false });
})

Everytime i want to open a nightmare instance it throws an alert with the message: "Uncaught Exception: undefined:undefined"
and closing the browser directly.

It's definitly from the filter function. When i comment it out the error doesn't appear.
Maybe there are some problems with the latest nightmare version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant