feat: Allow WebContentsView to accept webContents object. (#42086)

feat: Allow WebContentsView to accept webContents object
This commit is contained in:
Krzysztof Halwa 2024-05-30 21:45:35 +02:00 committed by GitHub
parent d92a80dfe3
commit 85df2a86dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 69 additions and 2 deletions

View file

@ -36,8 +36,9 @@ Process: [Main](../glossary.md#main-process)
* `options` Object (optional)
* `webPreferences` [WebPreferences](structures/web-preferences.md) (optional) - Settings of web page's features.
* `webContents` [WebContents](web-contents.md) (optional) - If present, the given WebContents will be adopted by the WebContentsView. A WebContents may only be presented in one WebContentsView at a time.
Creates an empty WebContentsView.
Creates a WebContentsView.
### Instance Properties