diff options
author | 2018-11-22 14:14:25 +0100 | |
---|---|---|
committer | 2018-11-22 14:14:25 +0100 | |
commit | 46b8c8c4b3a5b80e0187b284abc84566a7e784db (patch) | |
tree | 7fd378bcdd18e78c42dfeb61a15f89fd10106046 /src/config.js | |
parent | ADD features loading spinner (diff) | |
parent | feat(App): Add option to enable dark mode for supported services (diff) | |
download | ferdium-app-46b8c8c4b3a5b80e0187b284abc84566a7e784db.tar.gz ferdium-app-46b8c8c4b3a5b80e0187b284abc84566a7e784db.tar.zst ferdium-app-46b8c8c4b3a5b80e0187b284abc84566a7e784db.zip |
Merge branch 'develop' into feature/features-api
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/config.js b/src/config.js index e66594c59..ce946f00a 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -1,11 +1,15 @@ | |||
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'; |
4 | export const LIVE_API = 'https://api.franzinfra.com'; | 9 | export const LIVE_API = 'https://api.franzinfra.com'; |
5 | export const GA_ID = 'UA-74126766-6'; | 10 | export const GA_ID = 'UA-74126766-10'; |
6 | 11 | ||
7 | export const DEFAULT_APP_SETTINGS = { | 12 | export const DEFAULT_APP_SETTINGS = { |
8 | autoLaunchOnStart: true, | ||
9 | autoLaunchInBackground: false, | 13 | autoLaunchInBackground: false, |
10 | runInBackground: true, | 14 | runInBackground: true, |
11 | enableSystemTray: true, | 15 | enableSystemTray: true, |
@@ -13,12 +17,15 @@ export const DEFAULT_APP_SETTINGS = { | |||
13 | showDisabledServices: true, | 17 | showDisabledServices: true, |
14 | showMessageBadgeWhenMuted: true, | 18 | showMessageBadgeWhenMuted: true, |
15 | enableSpellchecking: true, | 19 | enableSpellchecking: true, |
16 | // spellcheckingLanguage: 'auto', | 20 | darkMode: false, |
17 | locale: '', | 21 | locale: '', |
18 | fallbackLocale: 'en-US', | 22 | fallbackLocale: 'en-US', |
19 | beta: false, | 23 | beta: false, |
20 | isAppMuted: false, | 24 | isAppMuted: false, |
25 | enableGPUAcceleration: true, | ||
21 | }; | 26 | }; |
22 | 27 | ||
23 | export const FRANZ_SERVICE_REQUEST = 'http://bit.ly/franz-service-request'; | 28 | export const FRANZ_SERVICE_REQUEST = 'https://bit.ly/franz-service-request'; |
24 | export const FRANZ_TRANSLATION = 'http://bit.ly/franz-translate'; | 29 | export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate'; |
30 | |||
31 | export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config', 'settings.json'); | ||