From 2db5aa829403636fa26257697b87253c0b78abba Mon Sep 17 00:00:00 2001 From: minggo Date: Tue, 6 Sep 2016 17:46:55 +0800 Subject: [PATCH] update browser-window.md to add disableDevTools option --- docs/api/browser-window.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 3b0ca1fe69..c45cf21506 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -225,6 +225,7 @@ Possible values of the `titleBarStyle` option are: 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 is `true`. * `preload` String - Specifies a script that will be loaded before other