]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: Mention when to override userData path
authorCheng Zhao <zcbenz@gmail.com>
Mon, 19 Jan 2015 04:39:38 +0000 (20:39 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 19 Jan 2015 05:43:21 +0000 (21:43 -0800)
docs/api/app.md

index 4620dcf8cf20a26f16ead552eb5a808ba1e12edd..b32032924782bc617d9b14e49d4cbd936f40a9a9 100644 (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