diff options
author | Stefan Malzner <stefan@adlk.io> | 2018-11-15 12:21:28 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2018-11-15 12:21:28 +0100 |
commit | 8f5de18c754230540f731dbd12828ad8b850d1f2 (patch) | |
tree | dc5347ea0d5e5265923f058f6607b7b41bf7a0a9 /src/index.js | |
parent | Cleanup (diff) | |
download | ferdium-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.js | 5 |
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'); | |||
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')); |