mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add atom.exit, which exits from the browser process instead of the renderer
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user