fix(@browser): Fix disconnect when url is resolved by ens

This commit is contained in:
Anthony Laibe 2022-03-17 13:48:56 +01:00 committed by Anthony Laibe
parent 45deb4072e
commit 9c77f2162b

View File

@ -492,7 +492,7 @@ Rectangle {
} }
} }
onDisconnect: { onDisconnect: {
Web3ProviderStore.disconnect(Utils.getHostname(_internal.currentWebView.url)) Web3ProviderStore.disconnect(Utils.getHostname(browserHeader.addressBar.text))
provider.postMessage("web3-disconnect-account", "{}"); provider.postMessage("web3-disconnect-account", "{}");
_internal.currentWebView.reload() _internal.currentWebView.reload()
close() close()