Browse Source

:memo: Document `BrowserView.fromWebContents()`

Felix Rieseberg 7 years ago
parent
commit
6298748d0b
1 changed files with 7 additions and 0 deletions
  1. 7 0
      docs/api/browser-view.md

+ 7 - 0
docs/api/browser-view.md

@@ -44,6 +44,13 @@ view.webContents.loadURL('https://electronjs.org')
 
 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)`
 
 * `id` Integer