]> khamidou — GitHub mirrors - electron.git/commitdiff
Forward the crashed event to BrowserWindow, fix #2201
authorCheng Zhao <zcbenz@gmail.com>
Tue, 14 Jul 2015 22:13:41 +0000 (15:13 -0700)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 14 Jul 2015 22:13:41 +0000 (15:13 -0700)
atom/browser/api/lib/browser-window.coffee

index d021c3733509a147f62f7b9f8e76847941a4497f..e7a79d99fcbac4ae55945718825835668d8072de 100644 (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