mirror of
https://github.com/electron/electron.git
synced 2026-01-25 23:38:18 -05:00
Merge pull request #7041 from Ikana/document-webcontents-fromId
documents webContents.fromId
This commit is contained in:
@@ -37,6 +37,12 @@ for all windows, webviews, opened devtools, and devtools extension background pa
|
||||
Returns the web contents that is focused in this application, otherwise
|
||||
returns `null`.
|
||||
|
||||
### `webContents.fromId(id)`
|
||||
|
||||
* `id` Integer
|
||||
|
||||
Find a `WebContents` instance according to its ID.
|
||||
|
||||
## Class: WebContents
|
||||
|
||||
> Render and control the contents of a BrowserWindow instance.
|
||||
|
||||
Reference in New Issue
Block a user