mirror of
https://github.com/electron/electron.git
synced 2026-01-09 23:48:01 -05:00
docs: added webContents.getType() method (#16767)
* 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:
committed by
Samuel Attard
parent
26df9992cf
commit
76d919fff5
@@ -1650,6 +1650,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`
|
||||
|
||||
Reference in New Issue
Block a user