docs: added webContents.getType() method (backport: 5-0-x) (#16787)

* docs: added webContents.getType() method

* docs: add enumeration of return value for webContents.getType()

* docs: getType() in WebContents should be class method not module method
This commit is contained in:
trop[bot]
2019-02-07 08:51:51 -08:00
committed by Shelley Vohr
parent ee97b0864a
commit 2bd1a7ec1e

View File

@@ -1663,6 +1663,10 @@ Takes a V8 heap snapshot and saves it to `filePath`.
Controls whether or not this WebContents will throttle animations and timers
when the page becomes backgrounded. This also affects the Page Visibility API.
#### `contents.getType()`
Returns `String` - the type of the webContent. Can be `backgroundPage`, `window`, `browserView`, `remote`, `webview` or `offscreen`.
### Instance Properties
#### `contents.id`