aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/apiBase.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/apiBase.ts')
-rw-r--r--src/api/apiBase.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/apiBase.ts b/src/api/apiBase.ts
index d7cc9b810..c6e3c0ed8 100644
--- a/src/api/apiBase.ts
+++ b/src/api/apiBase.ts
@@ -13,7 +13,7 @@ import {
13import { fixUrl } from '../helpers/url-helpers'; 13import { fixUrl } from '../helpers/url-helpers';
14 14
15// Note: This cannot be used from the internal-server since we are not running within the context of a browser window 15// Note: This cannot be used from the internal-server since we are not running within the context of a browser window
16const apiBase = (withVersion = true) => { 16export default function apiBase(withVersion = true) {
17 if ( 17 if (
18 !(window as any).ferdium || 18 !(window as any).ferdium ||
19 !(window as any).ferdium.stores.settings || 19 !(window as any).ferdium.stores.settings ||
@@ -33,8 +33,6 @@ const apiBase = (withVersion = true) => {
33 return fixUrl(withVersion ? `${url}/${API_VERSION}` : url); 33 return fixUrl(withVersion ? `${url}/${API_VERSION}` : url);
34}; 34};
35 35
36export default apiBase;
37
38export function serverBase() { 36export function serverBase() {
39 37
40 const serverType = (window as any).ferdium.stores.settings.all.app.server; 38 const serverType = (window as any).ferdium.stores.settings.all.app.server;