Deprecate the page-title-set event
We have two names for the same event, page-title-updated wins.
This commit is contained in:
parent
c95117fb22
commit
e5974e44ed
6 changed files with 24 additions and 18 deletions
|
@ -32,7 +32,7 @@ BrowserWindow::_init = ->
|
|||
@emit 'crashed'
|
||||
|
||||
# Change window title to page title.
|
||||
@webContents.on 'page-title-set', (event, title, explicitSet) =>
|
||||
@webContents.on 'page-title-updated', (event, title, explicitSet) =>
|
||||
@emit 'page-title-updated', event, title
|
||||
@setTitle title unless event.defaultPrevented
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue