Merge pull request #5367 from sindresorhus/patch-1

improve the `webContents.openDevTools` docs
This commit is contained in:
Cheng Zhao 2016-05-04 16:52:48 +09:00
commit 4c1a0d29b0

View file

@ -655,8 +655,9 @@ Removes the specified path from DevTools workspace.
### `webContents.openDevTools([options])` ### `webContents.openDevTools([options])`
* `options` Object (optional) * `options` Object (optional)
* `mode` String - Opens the devtools with specified dock state, can be one of * `mode` String - Opens the devtools with specified dock state, can be
"right", "bottom", "undocked", "detach". Defaults to last used dock state. `right`, `bottom`, `undocked`, `detach`. Defaults to last used dock state.
In `undocked` mode it's possible to dock back. In `detach` mode it's not.
Opens the devtools. Opens the devtools.