diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 84f3fdf5f4c1..c5a0dc8329fa 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -394,6 +394,10 @@ Opens the developer tools. Closes the developer tools. +### BrowserWindow.toggleDevTools() + +Toggle the developer tools. + ### BrowserWindow.inspectElement(x, y) * `x` Integer diff --git a/docs/api/screen.md b/docs/api/screen.md index a5e8c9cb9372..c71799e9bd1d 100644 --- a/docs/api/screen.md +++ b/docs/api/screen.md @@ -1,6 +1,12 @@ # screen Gets various info about screen size, displays, cursor position, etc. +```js +var Screen = require('screen'); +var BrowserWindow = require('browser-window'); +var size = Screen.getPrimaryDisplay().workAreaSize; +mainWindow = new BrowserWindow({ width: size.width, height: size.height }); +``` ## screen.getCursorScreenPoint()