I'm trying to access the window object with the code below, how can I get this to work?
if (typeof window.ethereum !== 'undefined') {
console.log('MetaMask is installed!');
}
Develop games in your browser. Powerful, performant & highly capable.
See the scripting section of the manual which covers details around module scope and workers that affect this.