From 25c5938c761f4f51bddafa33c07f18508d5fe33d Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 30 Nov 2017 20:42:11 +0900 Subject: [PATCH] docs: Open detached devtools in example --- docs/api/web-contents.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 11ee401978bc..4def99b9e16c 100644 --- a/docs/api/web-contents.md +++ b/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'}) }) ```