aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/FeaturesStore.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-10-27 10:17:47 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2019-10-27 10:17:47 +0100
commita0ac009c44b210df4d79ffedbdd892fe7302d22e (patch)
treee74b4aa156a6da0311d5fe82b954ea76723c4919 /src/stores/FeaturesStore.js
parentImprove hero picture (diff)
downloadferdium-app-a0ac009c44b210df4d79ffedbdd892fe7302d22e.tar.gz
ferdium-app-a0ac009c44b210df4d79ffedbdd892fe7302d22e.tar.zst
ferdium-app-a0ac009c44b210df4d79ffedbdd892fe7302d22e.zip
#146 Add possible fix for 1.1.1.1 hack
Diffstat (limited to 'src/stores/FeaturesStore.js')
-rw-r--r--src/stores/FeaturesStore.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stores/FeaturesStore.js b/src/stores/FeaturesStore.js
index ab5d762c7..780cde3a7 100644
--- a/src/stores/FeaturesStore.js
+++ b/src/stores/FeaturesStore.js
@@ -57,7 +57,10 @@ export default class FeaturesStore extends Store {
57 _updateFeatures = () => { 57 _updateFeatures = () => {
58 const features = Object.assign({}, DEFAULT_FEATURES_CONFIG); 58 const features = Object.assign({}, DEFAULT_FEATURES_CONFIG);
59 if (this.stores.user.isLoggedIn) { 59 if (this.stores.user.isLoggedIn) {
60 const requestResult = this.featuresRequest.execute().result; 60 let requestResult = {};
61 try {
62 requestResult = this.featuresRequest.execute().result;
63 } catch (e) {} // eslint-disable-line no-empty
61 Object.assign(features, requestResult); 64 Object.assign(features, requestResult);
62 } 65 }
63 runInAction('FeaturesStore::_updateFeatures', () => { 66 runInAction('FeaturesStore::_updateFeatures', () => {