Defining Your App's Icon
优质
小牛编辑
130浏览
2023-12-01
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 head
with rel = "shortcut icon"
, like this.
The tag's href
attribute will be used for assigning the site icon.
<head>
<link rel="shortcut icon" href="https://your-site.com/your-icon.png" />
</head>