Merge pull request #10711 from yuya-oc/did-attach-webview

Add did-attach-webview event
This commit is contained in:
Cheng Zhao 2017-10-26 10:55:50 +09:00 committed by GitHub
commit 4db34ff092
4 changed files with 43 additions and 1 deletions

View file

@ -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])`