From a1e2fc057d11231f82512fc3544d88f9bbe5045a Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 3 Aug 2018 15:15:01 -0400 Subject: [PATCH] remove provider!==ens --- lib/modules/ens/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/modules/ens/index.js b/lib/modules/ens/index.js index 472ea316..8533523c 100644 --- a/lib/modules/ens/index.js +++ b/lib/modules/ens/index.js @@ -18,6 +18,8 @@ class ENS { this.namesConfig.enabled !== true || this.namesConfig.available_providers.indexOf('ens') < 0) { return; + } else if (this.namesConfig.provider !== 'ens') { + this.providerNotENS = true; } this.doSetENSProvider = this.namesConfig.provider === 'ens'; @@ -189,6 +191,9 @@ class ENS { addENSToEmbarkJS() { const self = this; + if (self.providerNotENS) { + return; + } // get namehash, import it into file self.events.request("version:get:eth-ens-namehash", function (EnsNamehashVersion) {