From: Cheng Zhao Date: Mon, 19 Jan 2015 04:39:38 +0000 (-0800) Subject: docs: Mention when to override userData path X-Git-Tag: v0.20.7~8^2~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=9a04f67c0a89f042be0dec3d0d24143bf57edd26;p=electron.git docs: Mention when to override userData path --- diff --git a/docs/api/app.md b/docs/api/app.md index 4620dcf8..b3203292 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -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