mirror of
https://github.com/atom/atom.git
synced 2026-01-26 15:28:27 -05:00
Make the atom.getReleaseChannel function public
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user