aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
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 5ba901b89..5fbe3bc4f 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'));