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