Add atom.getVersion(callback)

This commit is contained in:
Corey Johnson
2013-02-25 11:25:11 -08:00
parent ab5f9afb1f
commit ad14e65ef9
5 changed files with 28 additions and 0 deletions

View File

@@ -186,3 +186,6 @@ _.extend atom,
require userInitScriptPath if fs.isFile(userInitScriptPath)
catch error
console.error "Failed to load `#{userInitScriptPath}`", error.stack, error
getVersion: (callback) ->
@sendMessageToBrowserProcess('getVersion', null, callback)