The current way of loading the account data is deprecated (works in Edge, but not on Chrome)
Added a check if window.ethereum is available
Loads and enables the metamask wallet data
Accesses data from the
If not (the case for edge) - continues to use the old way of loading the data
The current way of loading the account data is deprecated (works in Edge, but not on Chrome) Added a check if window.ethereum is available Loads and enables the metamask wallet data Accesses data from the If not (the case for edge) - continues to use the old way of loading the data