aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/api/server/ServerApi.js2
-rw-r--r--src/index.js5
-rw-r--r--src/stores/SettingsStore.js2
3 files changed, 7 insertions, 2 deletions
diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js
index 353faa7f4..2e80e520b 100644
--- a/src/api/server/ServerApi.js
+++ b/src/api/server/ServerApi.js
@@ -35,7 +35,7 @@ module.paths.unshift(
35); 35);
36 36
37const { app } = remote; 37const { app } = remote;
38const fetch = remote.require('electron-fetch'); 38const { default: fetch } = remote.require('electron-fetch');
39 39
40const SERVER_URL = API; 40const SERVER_URL = API;
41const API_VERSION = 'v1'; 41const API_VERSION = 'v1';
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'));
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js
index d8519c609..9270a6481 100644
--- a/src/stores/SettingsStore.js
+++ b/src/stores/SettingsStore.js
@@ -68,7 +68,7 @@ export default class SettingsStore extends Store {
68 68
69 // Helper 69 // Helper
70 _migrate() { 70 _migrate() {
71 const legacySettings = localStorage.getItem('app'); 71 const legacySettings = localStorage.getItem('app') || {};
72 72
73 if (!this.all.migration['5.0.0-beta.17-settings']) { 73 if (!this.all.migration['5.0.0-beta.17-settings']) {
74 this.actions.settings.update({ 74 this.actions.settings.update({