docs: responsiblity of destroying devtoolsWebContents

This commit is contained in:
Cheng Zhao 2017-12-01 19:30:23 +09:00
parent 88c4fd3f2b
commit 52c6f4bcc5

View file

@ -1089,6 +1089,9 @@ with native view, which developers have very limited control of. With the
the devtools in it, including `BrowserWindow`, `BrowserView` and `<webview>`
tag.
Note that closing the devtools does not destory the `devToolsWebContents`, it
is caller's responsibility to destroy `devToolsWebContents`.
An example of showing devtools in a `<webview>` tag:
```html