From 297365b4f0603ddb7047efc75bbb4ddbb5288d97 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 14 Jul 2016 17:54:18 -0700 Subject: [PATCH] Add require example for webContents --- docs/api/web-contents.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 47f77ccb68..3d7e0d22ec 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -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