From 05ab7d39ad06d19dc5a1581118ee551bc5be612a Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 3 Aug 2016 14:54:36 -0700 Subject: [PATCH] Mark isDestroyed as public on BrowserWindow/WebContents --- docs/api/browser-window.md | 4 ++++ docs/api/web-contents.md | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 45060066e3f05..cca63107f5a77 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -572,6 +572,10 @@ Removes focus from the window. Returns a boolean, whether the window is focused. +#### `win.isDestroyed()` + +Returns a boolean, whether the window is destroyed. + #### `win.show()` Shows and gives focus to the window. diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 78bb6b56ae394..81e5a14b07458 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -352,7 +352,7 @@ Emitted when the cursor's type changes. The `type` parameter can be `default`, `not-allowed`, `zoom-in`, `zoom-out`, `grab`, `grabbing`, `custom`. If the `type` parameter is `custom`, the `image` parameter will hold the custom -cursor image in a `NativeImage`, and `scale`, `size` and `hotspot` will hold +cursor image in a `NativeImage`, and `scale`, `size` and `hotspot` will hold additional information about the custom cursor. #### Event: 'context-menu' @@ -536,6 +536,10 @@ console.log(currentURL) Returns the title of the current web page. +#### `contents.isDestroyed()` + +Returns a Boolean, whether the web page is destroyed. + #### `contents.isFocused()` Returns a Boolean, whether the web page is focused.