From 8d4bfc27c90e1bff0946636bd625a3b6a66184ce Mon Sep 17 00:00:00 2001 From: Beaudan Date: Tue, 11 Jun 2019 14:59:23 +1000 Subject: [PATCH] Have to put the tls setting here for some reason --- app/config.js | 3 --- preload.js | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/config.js b/app/config.js index f8c133c6a..49423916e 100644 --- a/app/config.js +++ b/app/config.js @@ -26,9 +26,6 @@ if (environment === 'production') { process.env.NODE_TLS_REJECT_UNAUTHORIZED = ''; } -// temporary clearnet fix -process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; - // We load config after we've made our modifications to NODE_ENV const config = require('config'); diff --git a/preload.js b/preload.js index 90c7f4885..e876ecd80 100644 --- a/preload.js +++ b/preload.js @@ -47,6 +47,9 @@ window.isBeforeVersion = (toCheck, baseVersion) => { } }; +// temporary clearnet fix +process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; + window.wrapDeferred = deferredToPromise; const ipc = electron.ipcRenderer;