We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Steps to reproduce the problem:
PAGE.JS
on(eventName, handler) { if (eventName === 'request') { return super.on(eventName, (event) => { event.enqueueInterceptAction(() => handler(event)); }); } return super.on(eventName, handler); }
This is the page.on() method. Because it is overriding the handlers for events with eventName "request", the original handler is not removable by
INDEX.JS
off(type, handler) { const handlers = all.get(type); if (handlers) { handlers.splice(handlers.indexOf(handler) >>> 0, 1); } }
and I'm wondering what ' >>> 0' is needed for.
10.4.0
v14.16.0
6.14.11
Windows
No response
The text was updated successfully, but these errors were encountered:
works great when
deleted from PAGE.JS (cooperative wouldn't work probably)
Sorry, something went wrong.
fixed #7624
No branches or pull requests
Bug description
Steps to reproduce the problem:
PAGE.JS
This is the page.on() method. Because it is overriding the handlers for events with eventName "request", the original handler is not removable by
INDEX.JS
and I'm wondering what ' >>> 0' is needed for.
Puppeteer version
10.4.0
Node.js version
v14.16.0
npm version
6.14.11
What operating system are you seeing the problem on?
Windows
Relevant log output
No response
The text was updated successfully, but these errors were encountered: