Improve docs for will-attach-webview
event
This commit is contained in:
parent
acedc3e726
commit
e8f0331aeb
1 changed files with 4 additions and 0 deletions
|
@ -516,6 +516,10 @@ Returns:
|
||||||
Emitted when a `<webview>`'s web contents is being attached to this web
|
Emitted when a `<webview>`'s web contents is being attached to this web
|
||||||
contents. Calling `event.preventDefault()` will destroy the guest page.
|
contents. Calling `event.preventDefault()` will destroy the guest page.
|
||||||
|
|
||||||
|
This event can be used to configure `webPreferences` for the `webContents`
|
||||||
|
of a `<webview>` before it's loaded, and provides the ability to set settings
|
||||||
|
that can't be set via `<webview>` attributes.
|
||||||
|
|
||||||
### Instance Methods
|
### Instance Methods
|
||||||
|
|
||||||
#### `contents.loadURL(url[, options])`
|
#### `contents.loadURL(url[, options])`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue