From 7eda40742d3545488de9fd8e39d8c83c31c73263 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 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/modules/ens/index.js b/lib/modules/ens/index.js index 3ac8443b8..2f94092e7 100644 --- a/lib/modules/ens/index.js +++ b/lib/modules/ens/index.js @@ -16,9 +16,10 @@ class ENS { if (this.namesConfig === {} || this.namesConfig.enabled !== true || - this.namesConfig.available_providers.indexOf('ens') < 0 || - this.namesConfig.provider !== 'ens') { + this.namesConfig.available_providers.indexOf('ens') < 0) { return; + } else if (this.namesConfig.provider !== 'ens') { + this.providerNotENS = true; } this.addENSToEmbarkJS(); @@ -186,6 +187,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) {