mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-09 09:38:07 +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)
|
return (unloadCallbacksRunning is 0)
|
||||||
|
|
||||||
runUnloadFinished: ->
|
runUnloadFinished: ->
|
||||||
|
{remote} = require('electron')
|
||||||
_.defer ->
|
_.defer ->
|
||||||
if remote.getGlobal('application').quitting
|
if remote.getGlobal('application').quitting
|
||||||
remote.require('app').quit()
|
remote.require('app').quit()
|
||||||
|
|
Loading…
Reference in a new issue