From 9f342ebbd1493b007d3836bdeddddd5574983d18 Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Thu, 6 Oct 2016 11:30:34 +0200 Subject: [PATCH 1/2] Add missing documentation --- docs/api/browser-window.md | 1 + docs/api/tray.md | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index d91226362a3c..015cf986865d 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -289,6 +289,7 @@ The `webPreferences` option is an object that can have the following properties: when the page becomes background. Defaults to `true`. * `offscreen` Boolean - Whether to enable offscreen rendering for the browser window. Defaults to `false`. +* `sandbox` Boolean - Whether to enable Chromium OS-level sandbox. ### Instance Events diff --git a/docs/api/tray.md b/docs/api/tray.md index 964f0d8a8306..19510085d0fc 100644 --- a/docs/api/tray.md +++ b/docs/api/tray.md @@ -251,4 +251,8 @@ Returns `Object`: The `bounds` of this tray icon as `Object`. +#### `tray.isDestroyed()` + +Returns `Boolean` - Whether the tray icon is destroyed. + [event-emitter]: http://nodejs.org/api/events.html#events_class_events_eventemitter From cb15181f4315a132ac5643e78f59516453309b9f Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Thu, 6 Oct 2016 12:03:37 +0200 Subject: [PATCH 2/2] Fix typo --- docs/api/system-preferences.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/system-preferences.md b/docs/api/system-preferences.md index d372d193a1c5..c5ad763264ab 100644 --- a/docs/api/system-preferences.md +++ b/docs/api/system-preferences.md @@ -24,7 +24,7 @@ accent color. ### `systemPreferences.isDarkMode()` _macOS_ -Returns `Boolean` - Whether the the system is in Dark Mode. +Returns `Boolean` - Whether the system is in Dark Mode. ### `systemPreferences.isSwipeTrackingFromScrollEventsEnabled()` _macOS_