aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/apiBase.ts
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2022-04-27 15:07:24 +0100
committerLibravatar GitHub <noreply@github.com>2022-04-27 14:07:24 +0000
commitc7c774c6318fcc8a13cb7f31e2672eea4ebfc777 (patch)
tree72b23f2031e00489118add998c3fed6bdbc8b9d8 /src/api/apiBase.ts
parent6.0.0-nightly.13 [skip ci] (diff)
downloadferdium-app-c7c774c6318fcc8a13cb7f31e2672eea4ebfc777.tar.gz
ferdium-app-c7c774c6318fcc8a13cb7f31e2672eea4ebfc777.tar.zst
ferdium-app-c7c774c6318fcc8a13cb7f31e2672eea4ebfc777.zip
Add Ferdi server to hosted services (#49)
* 'SettingsNavigation.js' and 'TeamDashboard.js' also have a call to 'LIVE_FERDI_API', but it handles the teams feature that I think neither Ferdi or Ferdium provide. * Removes comment on 'apiBase.ts' because I tested and the Terms was redirecting fine on the 'Help' Menu.
Diffstat (limited to 'src/api/apiBase.ts')
-rw-r--r--src/api/apiBase.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/api/apiBase.ts b/src/api/apiBase.ts
index c41fbe8ba..7ed3616a8 100644
--- a/src/api/apiBase.ts
+++ b/src/api/apiBase.ts
@@ -34,7 +34,6 @@ const apiBase = (withVersion = true) => {
34export default apiBase; 34export default apiBase;
35 35
36export function termsBase() { 36export function termsBase() {
37 // TODO: This needs to handle local vs ferdium vs franz servers
38 return (window as any).ferdium.stores.settings.all.app.server !== LIVE_FRANZ_API 37 return (window as any).ferdium.stores.settings.all.app.server !== LIVE_FRANZ_API
39 ? (window as any).ferdium.stores.settings.all.app.server 38 ? (window as any).ferdium.stores.settings.all.app.server
40 : DEV_API_FRANZ_WEBSITE; 39 : DEV_API_FRANZ_WEBSITE;