aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js
index 1b982c77e..96f840533 100644
--- a/src/index.js
+++ b/src/index.js
@@ -11,9 +11,9 @@ import windowStateKeeper from 'electron-window-state';
11 11
12// Set app directory before loading user modules 12// Set app directory before loading user modules
13if (isDevMode) { 13if (isDevMode) {
14 app.setPath('userData', path.join(app.getPath('appData'), app.getName() + 'Dev')); 14 app.setPath('userData', path.join(app.getPath('appData'), `${app.getName()}Dev`));
15} else if (process.env.FERDI_USERDATA_DIR != null) { 15} else if (process.env.FERDI_USERDATA_DIR != null) {
16 app.setPath('userData', process.env.FERDI_USERDATA_DIR) 16 app.setPath('userData', process.env.FERDI_USERDATA_DIR);
17} else if (process.env.PORTABLE_EXECUTABLE_DIR != null) { 17} else if (process.env.PORTABLE_EXECUTABLE_DIR != null) {
18 app.setPath('userData', path.join(process.env.PORTABLE_EXECUTABLE_DIR, app.getName())); 18 app.setPath('userData', path.join(process.env.PORTABLE_EXECUTABLE_DIR, app.getName()));
19} 19}