Return void from beforeunload handler to allow window unload

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Max Brunsfeld
2016-08-24 13:57:43 -07:00
committed by Thomas Johansen
parent 09a296fc0e
commit db022e7779

View File

@@ -164,7 +164,8 @@ class WindowEventHandler
else
@applicationDelegate.didCancelWindowUnload()
confirmed
# Returning any non-void value stops the window from unloading
return true unless confirmed
handleWindowUnload: =>
@atomEnvironment.destroy()