diff options
author | 2021-08-05 08:45:37 +0530 | |
---|---|---|
committer | 2021-08-05 08:45:37 +0530 | |
commit | 3336789ba527e0421d0718834afdffd0f85c3b10 (patch) | |
tree | bab95c24baa1454eac0091f5f6726647519b8d38 /src/api/apiBase.js | |
parent | Updated 'CHANGELOG.md'. [skip ci] (diff) | |
download | ferdium-app-3336789ba527e0421d0718834afdffd0f85c3b10.tar.gz ferdium-app-3336789ba527e0421d0718834afdffd0f85c3b10.tar.zst ferdium-app-3336789ba527e0421d0718834afdffd0f85c3b10.zip |
refactor: minor refactoring: solve name-clash of env vars vs vars in the program
Diffstat (limited to 'src/api/apiBase.js')
-rw-r--r-- | src/api/apiBase.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/api/apiBase.js b/src/api/apiBase.js index 842c85e56..3278dc454 100644 --- a/src/api/apiBase.js +++ b/src/api/apiBase.js | |||
@@ -5,6 +5,8 @@ import { | |||
5 | API_VERSION, | 5 | API_VERSION, |
6 | } from '../environment'; | 6 | } from '../environment'; |
7 | import { | 7 | import { |
8 | DEV_API_FRANZ_WEBSITE, | ||
9 | LIVE_FRANZ_API, | ||
8 | LOCAL_SERVER, | 10 | LOCAL_SERVER, |
9 | SERVER_NOT_LOADED, | 11 | SERVER_NOT_LOADED, |
10 | } from '../config'; | 12 | } from '../config'; |
@@ -34,3 +36,8 @@ const apiBase = (withVersion = true) => { | |||
34 | }; | 36 | }; |
35 | 37 | ||
36 | export default apiBase; | 38 | export default apiBase; |
39 | |||
40 | export function termsBase() { | ||
41 | // TODO: This needs to handle local vs ferdi vs franz servers | ||
42 | return window.ferdi.stores.settings.all.app.server !== LIVE_FRANZ_API ? window.ferdi.stores.settings.all.app.server : DEV_API_FRANZ_WEBSITE; | ||
43 | } | ||