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

Need to be able turn off JsNavigationHandler #71

Open
vladomelchenko opened this issue Jul 15, 2020 · 1 comment
Open

Need to be able turn off JsNavigationHandler #71

vladomelchenko opened this issue Jul 15, 2020 · 1 comment

Comments

@vladomelchenko
Copy link

I need to use angle sharp with js engine without loading scripts on html pages, only for execute my scripts.
Now in JsConfigurationExtensions i cant remove JsNavigationHandler from configuration, but i need this ability

@FlorianRappl
Copy link
Contributor

Well, the NavigationHandler only handles javascript: URLs. It does not run the scripts.

You can disable the navigation handler even today:

var config = Configuration.Default.WithJs().Without<JsNavigationHandler>();

If all scripts on a given website are external, then just disabling resource loading would help (its by default disabled anyway).

I'm not sure if its sufficient for your use case though.

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

No branches or pull requests

2 participants