only enabble register in dev

This commit is contained in:
Jonathan Rainville 2018-07-25 16:27:30 -04:00 committed by Iuri Matias
parent 21a7f27de0
commit 5b5bcf9ddf

View File

@ -152,9 +152,8 @@ __embarkENS.setProvider = function (config) {
const ERROR_MESSAGE = 'ENS is not available in this chain';
self.registration = config.registration;
self.env = config.env;
EmbarkJS.onReady(() => {
self.registration = config.registration;
EmbarkJS.onReady(() => {
web3.eth.net.getId()
.then((id) => {
const registryAddress = self.registryAddresses[id] || config.registryAddress;