diff options
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 | ||