improve the webContents.openDevTools docs

consistent value notation and explain the difference between `undocked` and `detach` mode.
This commit is contained in:
Sindre Sorhus 2016-05-02 14:39:46 +07:00
parent f1edd88e56
commit ad09196433

View file

@ -655,8 +655,9 @@ Removes the specified path from DevTools workspace.
### `webContents.openDevTools([options])`
* `options` Object (optional)
* `mode` String - Opens the devtools with specified dock state, can be one of
"right", "bottom", "undocked", "detach". Defaults to last used dock state.
* `mode` String - Opens the devtools with specified dock state, can be
`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.