From d36c4f0ec9962c91ee153dd4823d1663a47bc4aa Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Tue, 3 Dec 2013 15:21:53 -0800 Subject: [PATCH] getUserAgent() --- src/atom.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/atom.coffee b/src/atom.coffee index be1b3af49..6fb271322 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -352,6 +352,10 @@ class Atom getVersion: -> app.getVersion() + # Public: Gets the user agent of the atom instance. + getUserAgent: -> + "GitHubAtom/#{app.getVersion()}" + # Public: Get the directory path to Atom's configuration area. # # Returns the absolute path to ~/.atom