Add require example for webContents

This commit is contained in:
Kevin Sawicki 2016-07-14 17:54:18 -07:00
parent 4de4774325
commit 297365b4f0

View file

@ -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