Merge pull request #7096 from minggo/add-option-to-disable-devtools

add option to disable devtools
This commit is contained in:
Cheng Zhao 2016-09-13 16:01:56 +09:00 committed by GitHub
commit 4eba8094d4
4 changed files with 20 additions and 3 deletions

View file

@ -224,6 +224,7 @@ Possible values of the `titleBarStyle` option are:
The `webPreferences` option is an object that can have the following properties:
* `devTools` Boolean - Whether to enable DevTools. If it is set to `false`, can not use `BrowserWindow.webContents.openDevTools()` to open DevTools. Default is `true`.
* `nodeIntegration` Boolean - Whether node integration is enabled. Default
is `true`.
* `preload` String - Specifies a script that will be loaded before other