docs: Open detached devtools in example

This commit is contained in:
Cheng Zhao 2017-11-30 20:42:11 +09:00
parent 580abedbb7
commit 25c5938c76

View file

@ -1131,7 +1131,7 @@ app.once('ready', () => {
devtools = new BrowserWindow({show: false})
devtools.show()
win.webContents.setDevToolsWebContents(devtools.webContents)
win.webContents.openDevTools()
win.webContents.openDevTools({mode: 'detach'})
})
```