fix: url replacement
This commit is contained in:
parent
bf5e988cb9
commit
3bc2c07042
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue