Make the atom.getReleaseChannel function public

This commit is contained in:
Lee Dohm
2017-09-10 13:32:02 -07:00
parent a553597752
commit ea249777dd

View File

@@ -445,7 +445,9 @@ class AtomEnvironment extends Model
getVersion: ->
@appVersion ?= @getLoadSettings().appVersion
# Returns the release channel as a {String}. Will return one of `'dev', 'beta', 'stable'`
# Public: Gets the release channel of the Atom application.
#
# Returns the release channel as a {String}. Will return one of `dev`, `beta`, or `stable`.
getReleaseChannel: ->
version = @getVersion()
if version.indexOf('beta') > -1