fix: url replacement

This commit is contained in:
Richard Ramos 2020-10-02 15:42:49 -04:00 committed by Iuri Matias
parent bf5e988cb9
commit 3bc2c07042
1 changed files with 1 additions and 3 deletions

View File

@ -377,9 +377,7 @@ Item {
target: currentWebView
onUrlChanged: {
var ensAddr = urlENSDictionary[web3Provider.getHost(currentWebView.url)];
if(ensAddr){ // replace host by ensAddr
addressBar.text = web3Provider.replaceHostByENS(currentWebView.url, ensAddr);
}
addressBar.text = ensAddr ? web3Provider.replaceHostByENS(currentWebView.url, ensAddr) : currentWebView.url;
}
}