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

calling 'onBeforeRequest' callback from nodejs side #6

Open
disovi opened this issue Jun 22, 2017 · 1 comment
Open

calling 'onBeforeRequest' callback from nodejs side #6

disovi opened this issue Jun 22, 2017 · 1 comment

Comments

@disovi
Copy link

disovi commented Jun 22, 2017

This is same question as kyungw00k/nightmare-webrequest-addon#1
I want to make some processing of 'details' on nodejs side and then decide whether I want to cancel that request or not. Is it possible to add such functionality?
As far as I understand I have to emit event from electron process to nightmare with details and then vice versa with callback result. I've found an example of sending event from electron to nightmare, but I don't understand how to send event from nightmare in right way. Thanks.

@kuraga
Copy link

kuraga commented Jul 27, 2017

Ping.
P.S. Preload scripts?

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

2 participants