mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-08 17:17:56 +08:00
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:
parent
e6a2bf3f4f
commit
89c5279d7d
1 changed files with 1 additions and 0 deletions
|
@ -133,6 +133,7 @@ class WindowEventHandler
|
|||
return (unloadCallbacksRunning is 0)
|
||||
|
||||
runUnloadFinished: ->
|
||||
{remote} = require('electron')
|
||||
_.defer ->
|
||||
if remote.getGlobal('application').quitting
|
||||
remote.require('app').quit()
|
||||
|
|
Loading…
Reference in a new issue