diff options
author | 2018-03-27 21:25:56 +0200 | |
---|---|---|
committer | 2018-03-27 21:25:56 +0200 | |
commit | 8aab8699e02ed9ec736bb6dfab0edd3fe9156c8d (patch) | |
tree | 9b853e0d343f4bf2f60625431275bdc2dd08e027 /src/config.js | |
parent | Move "locale" to user data (diff) | |
download | ferdium-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.js | 8 |
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 @@ | |||
1 | import electron from 'electron'; | ||
2 | import path from 'path'; | ||
3 | |||
4 | const app = process.type === 'renderer' ? electron.remote.app : electron.app; | ||
5 | |||
1 | export const CHECK_INTERVAL = 1000 * 3600; // How often should we perform checks | 6 | export const CHECK_INTERVAL = 1000 * 3600; // How often should we perform checks |
2 | export const LOCAL_API = 'http://localhost:3000'; | 7 | export const LOCAL_API = 'http://localhost:3000'; |
3 | export const DEV_API = 'https://dev.franzinfra.com'; | 8 | export 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 | ||
23 | export const FRANZ_SERVICE_REQUEST = 'http://bit.ly/franz-service-request'; | 27 | export const FRANZ_SERVICE_REQUEST = 'http://bit.ly/franz-service-request'; |
24 | export const FRANZ_TRANSLATION = 'http://bit.ly/franz-translate'; | 28 | export const FRANZ_TRANSLATION = 'http://bit.ly/franz-translate'; |
29 | |||
30 | export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config', 'settings.json'); | ||