Skip to content

Commit 2db5aa8

Browse files
author
minggo
committed
update browser-window.md to add disableDevTools option
1 parent baa55ca commit 2db5aa8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/api/browser-window.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ Possible values of the `titleBarStyle` option are:
225225

226226
The `webPreferences` option is an object that can have the following properties:
227227

228+
* `disableDevTools` Boolean - Whether to disable DevTools. If it is set to `true`, can not use `BrowserWindow.webContents.openDevTools()` to open DevTools. Default is `false`.
228229
* `nodeIntegration` Boolean - Whether node integration is enabled. Default
229230
is `true`.
230231
* `preload` String - Specifies a script that will be loaded before other

0 commit comments

Comments
 (0)