aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/serviceProxy/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/serviceProxy/index.js')
-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;