Forward the crashed event to BrowserWindow, fix #2201

This commit is contained in:
Cheng Zhao 2015-07-14 15:13:41 -07:00
parent 4b06c0645c
commit 1e9eccf959

View file

@ -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