From f01957203f77fce8b65d5e034a8acd68f1e0ae2e Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Sun, 9 Dec 2018 01:01:12 +0100 Subject: Upgrade to react 16 TODO: add componentDidCatch --- src/features/serviceProxy/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/features/serviceProxy') 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) { const services = stores.services.enabled; const isPremiumUser = stores.user.data.isPremium; + const proxySettings = stores.settings.proxy; + + debug('Service Proxy autorun'); services.forEach((service) => { const s = session.fromPartition(`persist:service-${service.id}`); if (config.isEnabled && (isPremiumUser || !config.isPremium)) { - const serviceProxyConfig = stores.settings.proxy[service.id]; + const serviceProxyConfig = proxySettings[service.id]; if (serviceProxyConfig && serviceProxyConfig.isEnabled && serviceProxyConfig.host) { const proxyHost = serviceProxyConfig.host; -- cgit v1.2.3-54-g00ecf