mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-22 11:38:57 +00:00
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…
x
Reference in New Issue
Block a user