When the website is not connected to the wallet, calling some methods will automatically pop up the wallet extension's connected wallet. such as getVersion, getBalance, getPublicKey etc.
Is this behavior supposed to happen?
I saw this paragraph in the official documentation: "You should only initiate a connection request in response to direct user action, such as clicking a button. You should always disable the "connect" button while the connection request is pending. You should never initiate a connection request on page load."
I very much agree with this statement, but the API doesn't seem to do this well. this will cause developers to have greater troubles.
When the website is not connected to the wallet, calling some methods will automatically pop up the wallet extension's connected wallet. such as
getVersion
,getBalance
,getPublicKey
etc.Is this behavior supposed to happen?
I saw this paragraph in the official documentation: "You should only initiate a connection request in response to direct user action, such as clicking a button. You should always disable the "connect" button while the connection request is pending. You should never initiate a connection request on page load."
I very much agree with this statement, but the API doesn't seem to do this well. this will cause developers to have greater troubles.
Can you explain the reason, please?
Thanks for your reply.