:memo: Update documentation on changes of "app" module.
authorCheng Zhao <zcbenz@gmail.com>
Thu, 5 Dec 2013 03:02:09 +0000 (11:02 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 5 Dec 2013 03:02:09 +0000 (11:02 +0800)
docs/api/browser/app.md

index c6e16a8875bff43e4e4c697c69d0afdf5c8a22ae..c10c2822f484b31c7001754efbeb84605bfdf561 100644 (file)
@@ -77,7 +77,21 @@ code will not run.
 
 ## app.getVersion()
 
-Returns the version of current bundle or executable.
+Returns the version of loaded application, if no version is found in
+application's `package.json`, the version of current bundle or executable would
+be returned.
+
+## app.getName()
+
+Returns current application's name, the name in `package.json` would be
+preferred.
+
+## app.setName(name)
+
+* `name` String
+
+Set application's name to `name`, usually the name in `package.json` is a short
+lowercased name, the `name` set here should be full and capitalized.
 
 ## app.getBrowserWindows()