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

Interacting with contents before they're set up. #3

Open
Kilian opened this issue Mar 30, 2023 · 0 comments
Open

Interacting with contents before they're set up. #3

Kilian opened this issue Mar 30, 2023 · 0 comments

Comments

@Kilian
Copy link

Kilian commented Mar 30, 2023

There is a sort of "race condition" between loading and webcontents being available:

  • you want to set some settings before loading anything
  • You can only set those settings on webcontents, which don't exist before you load something

I currently solve that with a load step of about:blank to instantiate the webContents, and only then setting what I need to set and loading whatever I want to load. Having either webcontents available or promise-able would really simplify the API + potentially speed up this process.

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

1 participant