Forward the crashed event to BrowserWindow, fix #2201
This commit is contained in:
parent
4b06c0645c
commit
1e9eccf959
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,10 @@ BrowserWindow::_init = ->
|
|||
if process.platform isnt 'darwin' and @isMenuBarAutoHide() and @isMenuBarVisible()
|
||||
@setMenuBarVisibility false
|
||||
|
||||
# Forward the crashed event.
|
||||
@webContents.on 'crashed', =>
|
||||
@emit 'crashed'
|
||||
|
||||
# Redirect focus/blur event to app instance too.
|
||||
@on 'blur', (event) =>
|
||||
app.emit 'browser-window-blur', event, this
|
||||
|
|
Loading…
Add table
Reference in a new issue