Add atom.exit, which exits from the browser process instead of the renderer

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-08-31 10:15:12 -06:00
parent 27335661dc
commit c9c138491e
7 changed files with 12 additions and 11 deletions

View File

@@ -48,6 +48,9 @@ atom.showDevTools = ->
atom.focus = ->
@sendMessageToBrowserProcess('focus')
atom.exit = (status) ->
@sendMessageToBrowserProcess('exit', [status])
atom.getRootViewStateForPath = (path) ->
if json = localStorage[path]
JSON.parse(json)