Open DimitarNestorov opened 1 year ago
Currently the extension replaces every instance of MetaMask to Light Wallet. This can cause confusion.
Make window.ethereum a proxy object and as soon as a property is accessed enable the find and replace functionality. Also add in local storage a key that this origin is a dapp so that the UX is less janky on the next refresh.
window.ethereum
For the beta a simple whitelist of famous dapps should suffice.
Problem
Currently the extension replaces every instance of MetaMask to Light Wallet. This can cause confusion.
Example URLs
Screenshots
Possible solution
Make
window.ethereum
a proxy object and as soon as a property is accessed enable the find and replace functionality. Also add in local storage a key that this origin is a dapp so that the UX is less janky on the next refresh.