Skip to content

Commit

Permalink
docs: add missing 'page-title-updated' event on webContents
Browse files Browse the repository at this point in the history
  • Loading branch information
miniak committed May 12, 2019
1 parent 326215e commit 19a4e03
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/api/browser-window.md
Expand Up @@ -416,9 +416,11 @@ Returns:

* `event` Event
* `title` String
* `explicitSet` Boolean

Emitted when the document changed its title, calling `event.preventDefault()`
will prevent the native window's title from changing.
`explicitSet` is false when title is synthesized from file url.

#### Event: 'close'

Expand Down
10 changes: 10 additions & 0 deletions docs/api/web-contents.md
Expand Up @@ -101,6 +101,16 @@ Returns:

Emitted when the document in the given frame is loaded.

#### Event: 'page-title-updated'

Returns:

* `event` Event
* `title` String

Fired when page title is set during navigation. `explicitSet` is false when
title is synthesized from file url.

#### Event: 'page-favicon-updated'

Returns:
Expand Down

0 comments on commit 19a4e03

Please sign in to comment.