aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-08-25 14:16:51 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-08-25 14:16:51 +0200
commita6f21e2623d76519402f7ca9c6d9f75ccd0ba5c2 (patch)
treee2c5c9b8a53d9c1be08c08c2d822715ff224d727 /src/api
parentAdd "Change Server" links to login and signup (diff)
downloadferdium-app-a6f21e2623d76519402f7ca9c6d9f75ccd0ba5c2.tar.gz
ferdium-app-a6f21e2623d76519402f7ca9c6d9f75ccd0ba5c2.tar.zst
ferdium-app-a6f21e2623d76519402f7ca9c6d9f75ccd0ba5c2.zip
Remove news due to logout issues
Diffstat (limited to 'src/api')
-rw-r--r--src/api/apiBase.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/api/apiBase.js b/src/api/apiBase.js
index 42f09eaa8..ab47c78ee 100644
--- a/src/api/apiBase.js
+++ b/src/api/apiBase.js
@@ -8,9 +8,11 @@ import {
8 8
9const apiBase = () => { 9const apiBase = () => {
10 let url; 10 let url;
11 if (!window.ferdi.stores.settings || !window.ferdi.stores.settings.all) { 11 if (!window.ferdi || 
12 !window.ferdi.stores.settings || 
13 !window.ferdi.stores.settings.all) {
12 // Stores have not yet been loaded - send invalid URL to force a retry when stores are loaded 14 // Stores have not yet been loaded - send invalid URL to force a retry when stores are loaded
13 url = 'https://localhost:9999'; 15 url = 'https://1.1.1.1';
14 } else if (window.ferdi.stores.settings.all.app.server) { 16 } else if (window.ferdi.stores.settings.all.app.server) {
15 // Load URL from store 17 // Load URL from store
16 url = window.ferdi.stores.settings.all.app.server; 18 url = window.ferdi.stores.settings.all.app.server;