I’ll get straight to it.
This is my code:
if (typeof window.ethereum !== 'undefined') {
console.log('MetaMask is installed!');
const accounts = await ethereum.request({ method: 'eth_requestAccounts' });
return true;
} else {
return false;
}
works just fine on PC. However, when I go to my Metamask wallet, I go tho the browser section, reach my website and try to log in… nothing happens. Any ideas?