aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-03-27 21:25:56 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-03-27 21:25:56 +0200
commit8aab8699e02ed9ec736bb6dfab0edd3fe9156c8d (patch)
tree9b853e0d343f4bf2f60625431275bdc2dd08e027 /src/config.js
parentMove "locale" to user data (diff)
downloadferdium-app-8aab8699e02ed9ec736bb6dfab0edd3fe9156c8d.tar.gz
ferdium-app-8aab8699e02ed9ec736bb6dfab0edd3fe9156c8d.tar.zst
ferdium-app-8aab8699e02ed9ec736bb6dfab0edd3fe9156c8d.zip
Split settings into multiple stores; app specific settings are now stored in config file
Diffstat (limited to 'src/config.js')
-rw-r--r--src/config.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/config.js b/src/config.js
index e66594c59..366231f79 100644
--- a/src/config.js
+++ b/src/config.js
@@ -1,3 +1,8 @@
1import electron from 'electron';
2import path from 'path';
3
4const app = process.type === 'renderer' ? electron.remote.app : electron.app;
5
1export const CHECK_INTERVAL = 1000 * 3600; // How often should we perform checks 6export const CHECK_INTERVAL = 1000 * 3600; // How often should we perform checks
2export const LOCAL_API = 'http://localhost:3000'; 7export const LOCAL_API = 'http://localhost:3000';
3export const DEV_API = 'https://dev.franzinfra.com'; 8export const DEV_API = 'https://dev.franzinfra.com';
@@ -13,7 +18,6 @@ export const DEFAULT_APP_SETTINGS = {
13 showDisabledServices: true, 18 showDisabledServices: true,
14 showMessageBadgeWhenMuted: true, 19 showMessageBadgeWhenMuted: true,
15 enableSpellchecking: true, 20 enableSpellchecking: true,
16 // spellcheckingLanguage: 'auto',
17 locale: '', 21 locale: '',
18 fallbackLocale: 'en-US', 22 fallbackLocale: 'en-US',
19 beta: false, 23 beta: false,
@@ -22,3 +26,5 @@ export const DEFAULT_APP_SETTINGS = {
22 26
23export const FRANZ_SERVICE_REQUEST = 'http://bit.ly/franz-service-request'; 27export const FRANZ_SERVICE_REQUEST = 'http://bit.ly/franz-service-request';
24export const FRANZ_TRANSLATION = 'http://bit.ly/franz-translate'; 28export const FRANZ_TRANSLATION = 'http://bit.ly/franz-translate';
29
30export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config', 'settings.json');