Uncaught Exception: undefined:undefined
mh4ck opened this issue · comments
m.h4ck commented
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?