]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix compatibility with activate-with-no-open-windows event
authorCheng Zhao <zcbenz@gmail.com>
Thu, 26 Nov 2015 05:57:48 +0000 (13:57 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 26 Nov 2015 05:57:48 +0000 (13:57 +0800)
atom/browser/api/lib/app.coffee

index a2fdb847e1c563d018f17b23d7272adcf0bb970d..4d1803a0296f8b85af2af6cc709345cbfbfb3f27 100644 (file)
@@ -54,7 +54,7 @@ deprecate.event app, 'finish-launching', 'ready', ->
   setImmediate => # give default app a chance to setup default menu.
     @emit 'finish-launching'
 deprecate.event app, 'activate-with-no-open-windows', 'activate', (event, hasVisibleWindows) ->
-  @emit 'activate-with-no-open-windows' if not hasVisibleWindows
+  @emit 'activate-with-no-open-windows', event if not hasVisibleWindows
 deprecate.event app, 'select-certificate', 'select-client-certificate'
 
 # Wrappers for native classes.