📝 Document BrowserView.fromWebContents()

This commit is contained in:
Felix Rieseberg 2017-11-22 17:02:01 -08:00
parent 69e461083a
commit 6298748d0b

View file

@ -44,6 +44,13 @@ view.webContents.loadURL('https://electronjs.org')
Returns `BrowserView[]` - An array of all opened BrowserViews. Returns `BrowserView[]` - An array of all opened BrowserViews.
#### `BrowserView.fromWebContents(webContents)`
* `webContents` [WebContents](web-contents.md)
Returns `BrowserView | null` - The BrowserView that owns the given `webContents`
or `null` if the contents are not owned by a BrowserView.
#### `BrowserView.fromId(id)` #### `BrowserView.fromId(id)`
* `id` Integer * `id` Integer