From ad09196433c049a42825d1a918abeb258cf23878 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 2 May 2016 14:39:46 +0700 Subject: [PATCH] improve the `webContents.openDevTools` docs consistent value notation and explain the difference between `undocked` and `detach` mode. --- docs/api/web-contents.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 64e7cea..4576e77 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -655,8 +655,9 @@ Removes the specified path from DevTools workspace. ### `webContents.openDevTools([options])` * `options` Object (optional) - * `mode` String - Opens the devtools with specified dock state, can be one of - "right", "bottom", "undocked", "detach". Defaults to last used dock state. + * `mode` String - Opens the devtools with specified dock state, can be + `right`, `bottom`, `undocked`, `detach`. Defaults to last used dock state. + In `undocked` mode it's possible to dock back. In `detach` mode it's not. Opens the devtools. -- 2.7.4