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

Scripting #44

Open
runah1996 opened this issue Jan 13, 2024 · 3 comments
Open

Scripting #44

runah1996 opened this issue Jan 13, 2024 · 3 comments

Comments

@runah1996
Copy link

runah1996 commented Jan 13, 2024

I have been testing out the scripts feature that I know it is in beta, but I'm trying to use simple things like, console logs, alerts, just to check it the script is working but it does not seem to be. Any ideas?

EDIT: Just tested the script own example, and not even that works.

@vladlavrik
Copy link
Owner

This code runs in an isolated sandbox, so you can't see the effect of calling alert or console.log in any way.
I think it will be useful to intercept calls to console.log (and other console methods) and implement the logic of displaying these messages inside Netify tab.
I will try to do it in the nearest future.

@vladlavrik
Copy link
Owner

I noticed a problem: if only the response to a request is processed by the script, this request will not be added to the Network log (in the Netify tab). I will also fix it in the next release.

You may not see the effect because your request does not match the filter for the rule.
Try to set a script for the request stage and check whether the entry appears in the Network log.

@runah1996
Copy link
Author

Thanks for the feedback, I am waiting impatiently for the updates

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