Allow using docked devtools for webview

This commit is contained in:
Cheng Zhao 2017-12-01 11:11:37 +09:00
parent ea9771702b
commit 6b408de884
2 changed files with 8 additions and 4 deletions

View file

@ -1144,6 +1144,9 @@ app.once('ready', () => {
Opens the devtools.
When `contents` is a `<webview>` tag, the `mode` would be `detach` by default,
explicitly passing an empty `mode` can force using last used dock state.
#### `contents.closeDevTools()`
Closes the devtools.