I have metamask installed. When I type window.ethereum
in the console in a random webpage, I get a Proxy object.
When I type window.ethereum
in my locally served webpage on localhost:5000
, I get undefined
. The page is served using python -m http.server 5000
?
How can I get metamask to inject window.ethereum
on my local website? When searching for this issue, all solutions suggest running my page with a server, but this is already what I am doing.