remove provider!==ens

This commit is contained in:
Jonathan Rainville 2018-08-03 15:15:01 -04:00 committed by Iuri Matias
parent 95c945c238
commit a1e2fc057d
1 changed files with 5 additions and 0 deletions

View File

@ -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) {