From: Cheng Zhao Date: Thu, 5 Dec 2013 03:02:09 +0000 (+0800) Subject: :memo: Update documentation on changes of "app" module. X-Git-Tag: v0.7.5~1^2~5 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=eec8560119c4fd68b17546af504895d1d19b3157;p=electron.git :memo: Update documentation on changes of "app" module. --- diff --git a/docs/api/browser/app.md b/docs/api/browser/app.md index c6e16a88..c10c2822 100644 --- a/docs/api/browser/app.md +++ b/docs/api/browser/app.md @@ -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()