Defining Your App’s Icon
When your site makes a login request to a MetaMask user, MetaMask may render a modal that display’s your site icon.
We retrieve this icon using the HTML selector
head > link[rel="shortcut icon"], so to customize this icon for your site, just make sure to follow the favicon standard, and make sure to have a
link tag within your site’s
rel = "shortcut icon", like this.
href attribute will be used for assigning the site icon.
<head> <link rel="shortcut icon" href="https://your-site.com/your-icon.png"> </head>