aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/serviceProxy
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-12-09 01:01:12 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-12-09 01:01:12 +0100
commitf01957203f77fce8b65d5e034a8acd68f1e0ae2e (patch)
tree2f8d0d232266cdc7ed74e1913b270527f46bb33d /src/features/serviceProxy
parentAdd dark mode styles to content tabs (diff)
downloadferdium-app-f01957203f77fce8b65d5e034a8acd68f1e0ae2e.tar.gz
ferdium-app-f01957203f77fce8b65d5e034a8acd68f1e0ae2e.tar.zst
ferdium-app-f01957203f77fce8b65d5e034a8acd68f1e0ae2e.zip
Upgrade to react 16
TODO: add componentDidCatch
Diffstat (limited to 'src/features/serviceProxy')
-rw-r--r--src/features/serviceProxy/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/features/serviceProxy/index.js b/src/features/serviceProxy/index.js
index ee0b4e79c..acd8f162f 100644
--- a/src/features/serviceProxy/index.js
+++ b/src/features/serviceProxy/index.js
@@ -23,12 +23,15 @@ export default function init(stores) {
23 23
24 const services = stores.services.enabled; 24 const services = stores.services.enabled;
25 const isPremiumUser = stores.user.data.isPremium; 25 const isPremiumUser = stores.user.data.isPremium;
26 const proxySettings = stores.settings.proxy;
27
28 debug('Service Proxy autorun');
26 29
27 services.forEach((service) => { 30 services.forEach((service) => {
28 const s = session.fromPartition(`persist:service-${service.id}`); 31 const s = session.fromPartition(`persist:service-${service.id}`);
29 32
30 if (config.isEnabled && (isPremiumUser || !config.isPremium)) { 33 if (config.isEnabled && (isPremiumUser || !config.isPremium)) {
31 const serviceProxyConfig = stores.settings.proxy[service.id]; 34 const serviceProxyConfig = proxySettings[service.id];
32 35
33 if (serviceProxyConfig && serviceProxyConfig.isEnabled && serviceProxyConfig.host) { 36 if (serviceProxyConfig && serviceProxyConfig.isEnabled && serviceProxyConfig.host) {
34 const proxyHost = serviceProxyConfig.host; 37 const proxyHost = serviceProxyConfig.host;