fix(events): define the remote variable

This code triggers when a window is supposed to close, but this error
causes the DevTools to open and the window not exiting
This commit is contained in:
mbilker 2016-02-06 01:17:33 -05:00
parent e6a2bf3f4f
commit 89c5279d7d

View file

@ -133,6 +133,7 @@ class WindowEventHandler
return (unloadCallbacksRunning is 0)
runUnloadFinished: ->
{remote} = require('electron')
_.defer ->
if remote.getGlobal('application').quitting
remote.require('app').quit()