aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.js')
-rw-r--r--src/config.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/config.js b/src/config.js
index 0b377f62d..a782ad667 100644
--- a/src/config.js
+++ b/src/config.js
@@ -1,13 +1,14 @@
1import electron from 'electron'; 1import electron from 'electron';
2import path from 'path'; 2import path from 'path';
3import isDevMode from 'electron-is-dev'; 3import isDevMode from 'electron-is-dev';
4import ms from 'ms';
4 5
5import { asarPath } from './helpers/asar-helpers'; 6import { asarPath } from './helpers/asar-helpers';
6 7
7const app = process.type === 'renderer' ? electron.remote.app : electron.app; 8const app = process.type === 'renderer' ? electron.remote.app : electron.app;
8const systemPreferences = process.type === 'renderer' ? electron.remote.systemPreferences : electron.systemPreferences; 9const systemPreferences = process.type === 'renderer' ? electron.remote.systemPreferences : electron.systemPreferences;
9 10
10export const CHECK_INTERVAL = 1000 * 3600; // How often should we perform checks 11export const CHECK_INTERVAL = ms('1h'); // How often should we perform checks
11export const LOCAL_API = 'http://localhost:3000'; 12export const LOCAL_API = 'http://localhost:3000';
12export const DEV_API = 'https://dev.franzinfra.com'; 13export const DEV_API = 'https://dev.franzinfra.com';
13export const LIVE_API = 'https://api.franzinfra.com'; 14export const LIVE_API = 'https://api.franzinfra.com';
@@ -35,8 +36,8 @@ export const DEFAULT_FEATURES_CONFIG = {
35 isSpellcheckerPremiumFeature: false, 36 isSpellcheckerPremiumFeature: false,
36 needToWaitToProceed: false, 37 needToWaitToProceed: false,
37 needToWaitToProceedConfig: { 38 needToWaitToProceedConfig: {
38 delayOffset: 3600000, 39 delayOffset: ms('1h'),
39 wait: 10000, 40 wait: ms('10s'),
40 }, 41 },
41 isServiceProxyEnabled: false, 42 isServiceProxyEnabled: false,
42 isServiceProxyPremiumFeature: true, 43 isServiceProxyPremiumFeature: true,