add missing alt attribute
This commit is contained in:
@ -12,7 +12,9 @@ const RelayFavicon = ({ url }: { url: string }) => {
|
|||||||
.replace(/^ws:\/\//, "http://")
|
.replace(/^ws:\/\//, "http://")
|
||||||
.replace(/\/$/, "");
|
.replace(/\/$/, "");
|
||||||
const [faviconUrl, setFaviconUrl] = useState(`${cleanUrl}/favicon.ico`);
|
const [faviconUrl, setFaviconUrl] = useState(`${cleanUrl}/favicon.ico`);
|
||||||
return <img className="favicon" src={faviconUrl} onError={() => setFaviconUrl(Nostrich)} />;
|
return (
|
||||||
|
<img className="favicon" src={faviconUrl} onError={() => setFaviconUrl(Nostrich)} alt={`favicon for ${url}`} />
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
interface RelaysMetadataProps {
|
interface RelaysMetadataProps {
|
||||||
|
Reference in New Issue
Block a user