diff options
author | 2022-07-07 09:31:50 +0200 | |
---|---|---|
committer | 2022-07-07 09:31:50 +0200 | |
commit | 71c52373f81cace664047edd19d9d289f45a4dff (patch) | |
tree | 69b3f1d45a8b3f1ceab9497ea3c96e9dc18e3166 /src/api/apiBase.ts | |
parent | 6.0.0-nightly.91 [skip ci] (diff) | |
download | ferdium-app-71c5237.tar.gz ferdium-app-71c5237.tar.zst ferdium-app-71c5237.zip |
chore: Mobx & React-Router upgrade (#406)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/api/apiBase.ts')
-rw-r--r-- | src/api/apiBase.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/api/apiBase.ts b/src/api/apiBase.ts index 918213542..701919785 100644 --- a/src/api/apiBase.ts +++ b/src/api/apiBase.ts | |||
@@ -23,6 +23,7 @@ export default function apiBase(withVersion = true) { | |||
23 | // Stores have not yet been loaded - return SERVER_NOT_LOADED to force a retry when stores are loaded | 23 | // Stores have not yet been loaded - return SERVER_NOT_LOADED to force a retry when stores are loaded |
24 | return SERVER_NOT_LOADED; | 24 | return SERVER_NOT_LOADED; |
25 | } | 25 | } |
26 | |||
26 | const url = | 27 | const url = |
27 | (window as any).ferdium.stores.settings.all.app.server === LOCAL_SERVER | 28 | (window as any).ferdium.stores.settings.all.app.server === LOCAL_SERVER |
28 | ? `http://${LOCAL_HOSTNAME}:${ | 29 | ? `http://${LOCAL_HOSTNAME}:${ |
@@ -34,7 +35,6 @@ export default function apiBase(withVersion = true) { | |||
34 | }; | 35 | }; |
35 | 36 | ||
36 | export function serverBase() { | 37 | export function serverBase() { |
37 | |||
38 | const serverType = (window as any).ferdium.stores.settings.all.app.server; | 38 | const serverType = (window as any).ferdium.stores.settings.all.app.server; |
39 | const noServer = 'You are using Ferdium without a server'; | 39 | const noServer = 'You are using Ferdium without a server'; |
40 | 40 | ||
@@ -54,7 +54,6 @@ export function serverBase() { | |||
54 | } | 54 | } |
55 | 55 | ||
56 | export function serverName(): string { | 56 | export function serverName(): string { |
57 | |||
58 | const serverType = (window as any).ferdium.stores.settings.all.app.server; | 57 | const serverType = (window as any).ferdium.stores.settings.all.app.server; |
59 | const noServer = 'You are using Ferdium without a server'; | 58 | const noServer = 'You are using Ferdium without a server'; |
60 | 59 | ||