diff --git a/src/window-event-handler.coffee b/src/window-event-handler.coffee index 5df58c810..7db11a658 100644 --- a/src/window-event-handler.coffee +++ b/src/window-event-handler.coffee @@ -133,6 +133,7 @@ class WindowEventHandler return (unloadCallbacksRunning is 0) runUnloadFinished: -> + {remote} = require('electron') _.defer -> if remote.getGlobal('application').quitting remote.require('app').quit()