diff options
author | 2019-04-09 01:20:35 +0200 | |
---|---|---|
committer | 2019-04-09 01:20:35 +0200 | |
commit | 25fc276d5e3f754f915500e91229b8607febc478 (patch) | |
tree | 1875b74611d2cc7be8c6b040dae55ede89e51356 /src/environment.js | |
parent | update strings (diff) | |
download | ferdium-app-25fc276d5e3f754f915500e91229b8607febc478.tar.gz ferdium-app-25fc276d5e3f754f915500e91229b8607febc478.tar.zst ferdium-app-25fc276d5e3f754f915500e91229b8607febc478.zip |
Add settings websocket
Diffstat (limited to 'src/environment.js')
-rw-r--r-- | src/environment.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/environment.js b/src/environment.js index 68fa45173..e47b373b0 100644 --- a/src/environment.js +++ b/src/environment.js | |||
@@ -7,6 +7,9 @@ import { | |||
7 | LOCAL_API_WEBSITE, | 7 | LOCAL_API_WEBSITE, |
8 | DEV_API_WEBSITE, | 8 | DEV_API_WEBSITE, |
9 | LIVE_API_WEBSITE, | 9 | LIVE_API_WEBSITE, |
10 | LIVE_WS_API, | ||
11 | LOCAL_WS_API, | ||
12 | DEV_WS_API, | ||
10 | } from './config'; | 13 | } from './config'; |
11 | 14 | ||
12 | export const isDevMode = isDev; | 15 | export const isDevMode = isDev; |
@@ -26,17 +29,22 @@ export const ctrlKey = isMac ? '⌘' : 'Ctrl'; | |||
26 | export const cmdKey = isMac ? 'Cmd' : 'Ctrl'; | 29 | export const cmdKey = isMac ? 'Cmd' : 'Ctrl'; |
27 | 30 | ||
28 | let api; | 31 | let api; |
32 | let wsApi; | ||
29 | let web; | 33 | let web; |
30 | if (!isDevMode || (isDevMode && useLiveAPI)) { | 34 | if (!isDevMode || (isDevMode && useLiveAPI)) { |
31 | api = LIVE_API; | 35 | api = LIVE_API; |
36 | wsApi = LIVE_WS_API; | ||
32 | web = LIVE_API_WEBSITE; | 37 | web = LIVE_API_WEBSITE; |
33 | } else if (isDevMode && useLocalAPI) { | 38 | } else if (isDevMode && useLocalAPI) { |
34 | api = LOCAL_API; | 39 | api = LOCAL_API; |
40 | wsApi = LOCAL_WS_API; | ||
35 | web = LOCAL_API_WEBSITE; | 41 | web = LOCAL_API_WEBSITE; |
36 | } else { | 42 | } else { |
37 | api = DEV_API; | 43 | api = DEV_API; |
44 | wsApi = DEV_WS_API; | ||
38 | web = DEV_API_WEBSITE; | 45 | web = DEV_API_WEBSITE; |
39 | } | 46 | } |
40 | 47 | ||
41 | export const API = api; | 48 | export const API = api; |
49 | export const WS_API = wsApi; | ||
42 | export const WEBSITE = web; | 50 | export const WEBSITE = web; |