aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-11-15 12:38:55 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-11-15 12:38:55 +0100
commitf6d1b8bd3b7667922e7bf802590db834c3fc2798 (patch)
treef0a963a357c8f066f8590719098e375358d834c1 /src/index.js
parentUpdate stylesheets and added darkMode variable and toggle. (diff)
parentMerge branch 'chore/update-dependencies' into develop (diff)
downloadferdium-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.js5
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');
19let mainWindow; 19let mainWindow;
20let willQuitApp = false; 20let willQuitApp = false;
21 21
22// DEV MODE: Save user data into FranzDev
23if (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
23fs.emptyDirSync(path.join(app.getPath('userData'), 'recipes', 'temp')); 28fs.emptyDirSync(path.join(app.getPath('userData'), 'recipes', 'temp'));
24fs.ensureFileSync(path.join(app.getPath('userData'), 'window-state.json')); 29fs.ensureFileSync(path.join(app.getPath('userData'), 'window-state.json'));