Add require example for webContents
This commit is contained in:
parent
4de4774325
commit
297365b4f0
1 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,12 @@ let contents = win.webContents;
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
|
These methods can be accessed from the `webContents` module:
|
||||||
|
|
||||||
|
```js
|
||||||
|
const {webContents} = require('electron');
|
||||||
|
```
|
||||||
|
|
||||||
### `webContents.getAllWebContents()`
|
### `webContents.getAllWebContents()`
|
||||||
|
|
||||||
Returns an array of all web contents. This will contain web contents for all
|
Returns an array of all web contents. This will contain web contents for all
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue