diff options
author | Stefan Malzner <stefan@adlk.io> | 2018-11-15 12:38:55 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2018-11-15 12:38:55 +0100 |
commit | f6d1b8bd3b7667922e7bf802590db834c3fc2798 (patch) | |
tree | f0a963a357c8f066f8590719098e375358d834c1 /src/index.js | |
parent | Update stylesheets and added darkMode variable and toggle. (diff) | |
parent | Merge branch 'chore/update-dependencies' into develop (diff) | |
download | ferdium-app-f6d1b8bd3b7667922e7bf802590db834c3fc2798.tar.gz ferdium-app-f6d1b8bd3b7667922e7bf802590db834c3fc2798.tar.zst ferdium-app-f6d1b8bd3b7667922e7bf802590db834c3fc2798.zip |
Merge remote-tracking branch 'origin/develop' into pr/1026
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index ac94804c1..4480199a7 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -19,6 +19,11 @@ const debug = require('debug')('App'); | |||
19 | let mainWindow; | 19 | let mainWindow; |
20 | let willQuitApp = false; | 20 | let willQuitApp = false; |
21 | 21 | ||
22 | // DEV MODE: Save user data into FranzDev | ||
23 | if (isDevMode) { | ||
24 | app.setPath('userData', path.join(app.getPath('appData'), 'FranzDev')); | ||
25 | } | ||
26 | |||
22 | // Ensure that the recipe directory exists | 27 | // Ensure that the recipe directory exists |
23 | fs.emptyDirSync(path.join(app.getPath('userData'), 'recipes', 'temp')); | 28 | fs.emptyDirSync(path.join(app.getPath('userData'), 'recipes', 'temp')); |
24 | fs.ensureFileSync(path.join(app.getPath('userData'), 'window-state.json')); | 29 | fs.ensureFileSync(path.join(app.getPath('userData'), 'window-state.json')); |