Skip to content

Commit

Permalink
Mark isDestroyed as public on BrowserWindow/WebContents
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Aug 3, 2016
1 parent 15e6028 commit 05ab7d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/api/browser-window.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 5 additions & 1 deletion docs/api/web-contents.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 05ab7d3

Please sign in to comment.