aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.js')
-rw-r--r--src/config.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/config.js b/src/config.js
index ecd1aa316..127dcd2dc 100644
--- a/src/config.js
+++ b/src/config.js
@@ -1,12 +1,9 @@
1import electron from 'electron';
2import isDevMode from 'electron-is-dev';
3import ms from 'ms'; 1import ms from 'ms';
4import path from 'path'; 2import path from 'path';
5import { DEFAULT_ACCENT_COLOR } from '@meetfranz/theme'; 3import { DEFAULT_ACCENT_COLOR } from '@meetfranz/theme';
6import { asarPath } from './helpers/asar-helpers'; 4import { asarPath } from './helpers/asar-helpers';
7 5
8const app = process.type === 'renderer' ? electron.remote.app : electron.app; 6const { app, nativeTheme } = process.type === 'renderer' ? require('@electron/remote') : require('electron');
9const nativeTheme = process.type === 'renderer' ? electron.remote.nativeTheme : electron.nativeTheme;
10 7
11export const CHECK_INTERVAL = ms('1h'); // How often should we perform checks 8export const CHECK_INTERVAL = ms('1h'); // How often should we perform checks
12 9
@@ -199,6 +196,7 @@ if (process.env.FERDI_APPDATA_DIR != null) {
199 app.setPath('userData', path.join(app.getPath('appData'), app.name)); 196 app.setPath('userData', path.join(app.getPath('appData'), app.name));
200} 197}
201 198
199export const isDevMode = !app.isPackaged;
202if (isDevMode) { 200if (isDevMode) {
203 app.setPath('userData', path.join(app.getPath('appData'), `${app.name}Dev`)); 201 app.setPath('userData', path.join(app.getPath('appData'), `${app.name}Dev`));
204} 202}