-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: The Pure JS example doesn't work, fail to detect Metamask extension #916
Comments
Hi @jimgreen2013 ! I wasn't able to reproduce this using OSX. Will try to give this one a go using Linux. I'll get back to this issue as soon as possible. |
I try my best to do some investigation, here are my findings:
|
Update the README to include steps for using a local HTTP server to serve index.html, as opening the file directly in the browser causes the Metamask SDK to fail to detect the MetaMask extension. Added: - Explanation about the need for a local HTTP server. - Steps to run the example using node http-server. Closes MetaMask#916
@christopherferreira9 Finally, I find out the reason, it's not a bug but due to opening the I have updated the README file and add more information, here is the pull request #930 |
awesome @jimgreen2013 ! We'll be addressing your PR soon. I'm closing this issue in the meantime. |
SDK
Web
Provide environment information
I've tried firefox, chromium and Braver browser, my os is Linux/Fedora
MetaMask SDK Version
0.18.5
MetaMask Mobile app Version
Just web
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
Expected Behavior
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://github.com/MetaMask/metamask-sdk/tree/main/packages/examples/pure-javascript
To Reproduce
open the index.html and click
connect
The text was updated successfully, but these errors were encountered: