From 89c5279d7d84feaed32c4f8121102b5d17583066 Mon Sep 17 00:00:00 2001 From: mbilker Date: Sat, 6 Feb 2016 01:17:33 -0500 Subject: [PATCH] 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 --- src/window-event-handler.coffee | 1 + 1 file changed, 1 insertion(+) 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()