update browser-window.md to add disableDevTools option

This commit is contained in:
minggo 2016-09-06 17:46:55 +08:00
parent baa55caf83
commit 2db5aa8294

View file

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