Add did-attach-webview event
This commit is contained in:
parent
61e606bedc
commit
6326c6727e
4 changed files with 43 additions and 1 deletions
|
@ -581,6 +581,16 @@ that can't be set via `<webview>` attributes.
|
|||
**Note:** The specified `preload` script option will be appear as `preloadURL`
|
||||
(not `preload`) in the `webPreferences` object emitted with this event.
|
||||
|
||||
#### Event: 'did-attach-webview'
|
||||
|
||||
Returns:
|
||||
|
||||
* `event` Event
|
||||
* `webContents` WebContents - The guest web contents that is used by the
|
||||
`<webview>`.
|
||||
|
||||
Emitted when a `<webview>` has been attached to this web contents.
|
||||
|
||||
### Instance Methods
|
||||
|
||||
#### `contents.loadURL(url[, options])`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue