mirror of
https://github.com/electron/electron.git
synced 2026-01-25 15:28:11 -05:00
Add require example for webContents
This commit is contained in:
@@ -19,6 +19,12 @@ let contents = win.webContents;
|
||||
|
||||
## Methods
|
||||
|
||||
These methods can be accessed from the `webContents` module:
|
||||
|
||||
```js
|
||||
const {webContents} = require('electron');
|
||||
```
|
||||
|
||||
### `webContents.getAllWebContents()`
|
||||
|
||||
Returns an array of all web contents. This will contain web contents for all
|
||||
|
||||
Reference in New Issue
Block a user