Browse Source

docs: Open detached devtools in example

Cheng Zhao 7 years ago
parent
commit
25c5938c76
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/api/web-contents.md

+ 1 - 1
docs/api/web-contents.md

@@ -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'})
 })
 ```