aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-11-15 12:21:28 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-11-15 12:21:28 +0100
commit8f5de18c754230540f731dbd12828ad8b850d1f2 (patch)
treedc5347ea0d5e5265923f058f6607b7b41bf7a0a9 /src/index.js
parentCleanup (diff)
downloadferdium-app-8f5de18c754230540f731dbd12828ad8b850d1f2.tar.gz
ferdium-app-8f5de18c754230540f731dbd12828ad8b850d1f2.tar.zst
ferdium-app-8f5de18c754230540f731dbd12828ad8b850d1f2.zip
Fix minor issues due to babel upgrade
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'));