diff options
author | 2019-08-22 21:40:07 +0200 | |
---|---|---|
committer | 2019-08-22 21:40:07 +0200 | |
commit | 30a891a83ce4bbbbaa6f6f3a13d2031b0a58188f (patch) | |
tree | 41dde64402f6a5ff93796ff5c541bf4dcf766542 /src/api/server/ServerApi.js | |
parent | Re-adding package-lock (diff) | |
download | ferdium-app-30a891a83ce4bbbbaa6f6f3a13d2031b0a58188f.tar.gz ferdium-app-30a891a83ce4bbbbaa6f6f3a13d2031b0a58188f.tar.zst ferdium-app-30a891a83ce4bbbbaa6f6f3a13d2031b0a58188f.zip |
Fix eslint errors
Diffstat (limited to 'src/api/server/ServerApi.js')
-rw-r--r-- | src/api/server/ServerApi.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js index 069994028..46a5b928d 100644 --- a/src/api/server/ServerApi.js +++ b/src/api/server/ServerApi.js | |||
@@ -39,7 +39,6 @@ const { default: fetch } = remote.require('electron-fetch'); | |||
39 | 39 | ||
40 | const SERVER_URL = API; | 40 | const SERVER_URL = API; |
41 | const API_VERSION = 'v1'; | 41 | const API_VERSION = 'v1'; |
42 | const API_URL = `${SERVER_URL}/${API_VERSION}`; | ||
43 | 42 | ||
44 | export default class ServerApi { | 43 | export default class ServerApi { |
45 | recipePreviews = []; | 44 | recipePreviews = []; |
@@ -56,15 +55,15 @@ export default class ServerApi { | |||
56 | let url; | 55 | let url; |
57 | if (!this.stores.settings) { | 56 | if (!this.stores.settings) { |
58 | // Stores have not yet been loaded - send invalid URL to force a retry when stores are loaded | 57 | // Stores have not yet been loaded - send invalid URL to force a retry when stores are loaded |
59 | url = 'https://localhost:9999' | 58 | url = 'https://localhost:9999'; |
60 | } else if (this.stores.settings.all.app.server) { | 59 | } else if (this.stores.settings.all.app.server) { |
61 | // Load URL from store | 60 | // Load URL from store |
62 | url = this.stores.settings.all.app.server; | 61 | url = this.stores.settings.all.app.server; |
63 | } else { | 62 | } else { |
64 | // Use default server url | 63 | // Use default server url |
65 | url = SERVER_URL; | 64 | url = SERVER_URL; |
66 | } | 65 | } |
67 | 66 | ||
68 | return `${url}/${API_VERSION}`; | 67 | return `${url}/${API_VERSION}`; |
69 | } | 68 | } |
70 | 69 | ||