diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-02-21 15:25:45 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-02-21 15:25:45 +0100 |
commit | 71e3d7310a06305c3c15685364ea8e20fc720867 (patch) | |
tree | 142ef1cc0ad793ea40cb8ea4f6d5c649cf4e0e3c /src/config.js | |
parent | Add pageview event (diff) | |
download | ferdium-app-71e3d7310a06305c3c15685364ea8e20fc720867.tar.gz ferdium-app-71e3d7310a06305c3c15685364ea8e20fc720867.tar.zst ferdium-app-71e3d7310a06305c3c15685364ea8e20fc720867.zip |
Simplify analytics calls
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.js b/src/config.js index aecba45be..0b377f62d 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -1,5 +1,7 @@ | |||
1 | import electron from 'electron'; | 1 | import electron from 'electron'; |
2 | import path from 'path'; | 2 | import path from 'path'; |
3 | import isDevMode from 'electron-is-dev'; | ||
4 | |||
3 | import { asarPath } from './helpers/asar-helpers'; | 5 | import { asarPath } from './helpers/asar-helpers'; |
4 | 6 | ||
5 | const app = process.type === 'renderer' ? electron.remote.app : electron.app; | 7 | const app = process.type === 'renderer' ? electron.remote.app : electron.app; |
@@ -9,7 +11,7 @@ export const CHECK_INTERVAL = 1000 * 3600; // How often should we perform checks | |||
9 | export const LOCAL_API = 'http://localhost:3000'; | 11 | export const LOCAL_API = 'http://localhost:3000'; |
10 | export const DEV_API = 'https://dev.franzinfra.com'; | 12 | export const DEV_API = 'https://dev.franzinfra.com'; |
11 | export const LIVE_API = 'https://api.franzinfra.com'; | 13 | export const LIVE_API = 'https://api.franzinfra.com'; |
12 | export const GA_ID = 'UA-74126766-10'; | 14 | export const GA_ID = !isDevMode ? 'UA-74126766-10' : 'UA-74126766-12'; |
13 | 15 | ||
14 | export const DEFAULT_APP_SETTINGS = { | 16 | export const DEFAULT_APP_SETTINGS = { |
15 | autoLaunchInBackground: false, | 17 | autoLaunchInBackground: false, |