📝 Add usage of productName of package.json.
This commit is contained in:
parent
a0c0bb18b7
commit
5f4a9316f1
1 changed files with 5 additions and 7 deletions
|
@ -84,14 +84,12 @@ be returned.
|
|||
## app.getName()
|
||||
|
||||
Returns current application's name, the name in `package.json` would be
|
||||
preferred.
|
||||
used.
|
||||
|
||||
## 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.
|
||||
Usually the `name` field of `package.json` is a short lowercased name, according
|
||||
to the spec of npm modules. So usually you should also specify a `productName`
|
||||
field, which is your application's full capitalized name, and it will be
|
||||
preferred over `name` by atom-shell.
|
||||
|
||||
## app.getBrowserWindows()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue