docs: Mention when to override userData path

This commit is contained in:
Cheng Zhao 2015-01-18 20:39:38 -08:00
parent 3d398458a8
commit 9a04f67c0a

View file

@ -119,6 +119,10 @@ created by this method. On failure an `Error` would throw.
You can only override paths of `name`s defined in `app.getPath`.
By default web pages' cookies and caches will be stored under `userData`
directory, if you want to change this location, you have to override the
`userData` path before the `ready` event of `app` module gets emitted.
## app.getVersion()
Returns the version of loaded application, if no version is found in