Fix MetaMask detection in extension popup
- Create dedicated metamask-detector.js content script that runs on all websites - Update manifest.json to include MetaMask detector for all URLs - Modify popup.js to communicate with MetaMask detector via message passing - Remove direct window.ethereum access from popup context (not available) - Web3 donations now work properly by using content script on active tab - MetaMask detection should now work correctly on any website
Showing
metamask-detector.js
0 → 100644
Please
register
or
sign in
to comment