diff options
author | 2021-06-05 07:58:00 +0530 | |
---|---|---|
committer | 2021-06-05 08:03:31 +0530 | |
commit | 368471dba24587415cae04ca33879404fb8639a5 (patch) | |
tree | b216754eed7d6f478ceefea9ef3c0ab5698581d4 /src/api/apiBase.js | |
parent | Upgraded electron to '13.1.1'. (diff) | |
download | ferdium-app-368471dba24587415cae04ca33879404fb8639a5.tar.gz ferdium-app-368471dba24587415cae04ca33879404fb8639a5.tar.zst ferdium-app-368471dba24587415cae04ca33879404fb8639a5.zip |
Reused commonly defined method for 'apiBase'
Diffstat (limited to 'src/api/apiBase.js')
-rw-r--r-- | src/api/apiBase.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/apiBase.js b/src/api/apiBase.js index 85dd0f3df..842c85e56 100644 --- a/src/api/apiBase.js +++ b/src/api/apiBase.js | |||
@@ -18,7 +18,8 @@ const apiBase = (withVersion = true) => { | |||
18 | || !window.ferdi.stores.settings.all.app.server) { | 18 | || !window.ferdi.stores.settings.all.app.server) { |
19 | // Stores have not yet been loaded - return SERVER_NOT_LOADED to force a retry when stores are loaded | 19 | // Stores have not yet been loaded - return SERVER_NOT_LOADED to force a retry when stores are loaded |
20 | return SERVER_NOT_LOADED; | 20 | return SERVER_NOT_LOADED; |
21 | } if (window.ferdi.stores.settings.all.app.server === LOCAL_SERVER) { | 21 | } |
22 | if (window.ferdi.stores.settings.all.app.server === LOCAL_SERVER) { | ||
22 | // Use URL for local server | 23 | // Use URL for local server |
23 | url = `http://127.0.0.1:${window.ferdi.stores.requests.localServerPort}`; | 24 | url = `http://127.0.0.1:${window.ferdi.stores.requests.localServerPort}`; |
24 | } else { | 25 | } else { |