fix: url replacement
This commit is contained in:
parent
bf5e988cb9
commit
3bc2c07042
|
@ -377,9 +377,7 @@ Item {
|
||||||
target: currentWebView
|
target: currentWebView
|
||||||
onUrlChanged: {
|
onUrlChanged: {
|
||||||
var ensAddr = urlENSDictionary[web3Provider.getHost(currentWebView.url)];
|
var ensAddr = urlENSDictionary[web3Provider.getHost(currentWebView.url)];
|
||||||
if(ensAddr){ // replace host by ensAddr
|
addressBar.text = ensAddr ? web3Provider.replaceHostByENS(currentWebView.url, ensAddr) : currentWebView.url;
|
||||||
addressBar.text = web3Provider.replaceHostByENS(currentWebView.url, ensAddr);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue