aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/apiBase.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-08 20:42:22 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-08 20:42:22 +0530
commita77c1533f73199287990f83ce9fb16416c056c46 (patch)
tree4584bb9d61553436bde77db9aafe1b0a0233030b /src/api/apiBase.js
parentrefactor(docker): remove unnecessary copy of package config files into Docker... (diff)
downloadferdium-app-a77c1533f73199287990f83ce9fb16416c056c46.tar.gz
ferdium-app-a77c1533f73199287990f83ce9fb16416c056c46.tar.zst
ferdium-app-a77c1533f73199287990f83ce9fb16416c056c46.zip
fix: fix the changelog api to handle nightly builds
Diffstat (limited to 'src/api/apiBase.js')
-rw-r--r--src/api/apiBase.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/api/apiBase.js b/src/api/apiBase.js
index db974c96f..ad37ca02c 100644
--- a/src/api/apiBase.js
+++ b/src/api/apiBase.js
@@ -30,10 +30,7 @@ const apiBase = (withVersion = true) => {
30 url = window.ferdi.stores.settings.all.app.server; 30 url = window.ferdi.stores.settings.all.app.server;
31 } 31 }
32 32
33 if (withVersion) { 33 return withVersion ? `${url}/${API_VERSION}` : url;
34 return `${url}/${API_VERSION}`;
35 }
36 return url;
37}; 34};
38 35
39export default apiBase; 36export default apiBase;