docs: Improve wording of setBrowserView and getBrowserView (#20065)

* Improve wording of setBrowserView and getBrowserView

* Update wording based on feedback
This commit is contained in:
Cem Schemel 2019-09-04 14:19:49 -07:00 committed by Shelley Vohr
parent a453f2ae6c
commit bff16e027a

View file

@ -1739,14 +1739,14 @@ removed in future Electron releases.
#### `win.setBrowserView(browserView)` _Experimental_
* `browserView` [BrowserView](browser-view.md) | null - Attach browserView to win.
If there is some other browserViews was attached they will be removed from
* `browserView` [BrowserView](browser-view.md) | null - Attach `browserView` to `win`.
If there are other `BrowserView`s attached, they will be removed from
this window.
#### `win.getBrowserView()` _Experimental_
Returns `BrowserView | null` - an BrowserView what is attached. Returns `null`
if none is attached. Throw error if multiple BrowserViews is attached.
Returns `BrowserView | null` - The `BrowserView` attached to `win`. Returns `null`
if one is not attached. Throws an error if multiple `BrowserView`s are attached.
#### `win.addBrowserView(browserView)` _Experimental_