remove provider!==ens

This commit is contained in:
Jonathan Rainville 2018-08-03 15:15:01 -04:00 committed by hodlbank
parent 960202dee9
commit 69bd34392b
1 changed files with 6 additions and 2 deletions

View File

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