aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-04-04 21:23:38 +0200
committerLibravatar GitHub <noreply@github.com>2018-04-04 21:23:38 +0200
commit1790b795238c2abe832285197cb88c0833bd98ca (patch)
tree89d4bc3632efc05822c0bec53a883b2d092bfd69 /src/config.js
parentFix typo [ci skip] (diff)
parentMerge branch 'master' into release/5.0.0-beta.18 (diff)
downloadferdium-app-1790b795238c2abe832285197cb88c0833bd98ca.tar.gz
ferdium-app-1790b795238c2abe832285197cb88c0833bd98ca.tar.zst
ferdium-app-1790b795238c2abe832285197cb88c0833bd98ca.zip
5.0.0 beta.18v5.0.0-beta.18
Diffstat (limited to 'src/config.js')
-rw-r--r--src/config.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/config.js b/src/config.js
index e66594c59..77fa92eca 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';
@@ -5,7 +10,6 @@ export const LIVE_API = 'https://api.franzinfra.com';
5export const GA_ID = 'UA-74126766-6'; 10export const GA_ID = 'UA-74126766-6';
6 11
7export const DEFAULT_APP_SETTINGS = { 12export 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,14 @@ 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',
17 locale: '', 20 locale: '',
18 fallbackLocale: 'en-US', 21 fallbackLocale: 'en-US',
19 beta: false, 22 beta: false,
20 isAppMuted: false, 23 isAppMuted: false,
24 enableGPUAcceleration: true,
21}; 25};
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');