From ffb0c22a80e61df282f0e574fd1ba82dbe006dad Mon Sep 17 00:00:00 2001 From: as3boyan Date: Tue, 1 Jul 2014 18:30:26 +0300 Subject: [PATCH 1/2] Update screen.md --- docs/api/screen.md | 6 ++++++ 1 file changed, 6 insertions(+) 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() From 116e4c877ef99e5e38a7e6b9dcf16aa90c89d80b Mon Sep 17 00:00:00 2001 From: as3boyan Date: Tue, 1 Jul 2014 18:32:44 +0300 Subject: [PATCH 2/2] Update browser-window.md --- docs/api/browser-window.md | 4 ++++ 1 file changed, 4 insertions(+) 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