From: Cheng Zhao Date: Tue, 14 Jul 2015 22:13:41 +0000 (-0700) Subject: Forward the crashed event to BrowserWindow, fix #2201 X-Git-Tag: v0.30.0~13 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=1e9eccf959492e81956b40cc69ccacb8159c3379;p=electron.git Forward the crashed event to BrowserWindow, fix #2201 --- diff --git a/atom/browser/api/lib/browser-window.coffee b/atom/browser/api/lib/browser-window.coffee index d021c373..e7a79d99 100644 --- a/atom/browser/api/lib/browser-window.coffee +++ b/atom/browser/api/lib/browser-window.coffee @@ -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