Skip to content

Commit 46f2c6e

Browse files
Solid-Meta: Fix incorrect data URI in emojiSvg() example (#1027)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent ccfdba7 commit 46f2c6e

File tree

1 file changed

+2
-2
lines changed
  • src/routes/solid-meta/reference/meta

1 file changed

+2
-2
lines changed

src/routes/solid-meta/reference/meta/link.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To use an emoji as a favicon, first create a function that returns a data URI co
3838
```jsx
3939
const emojiSvg = (emoji) => {
4040
return (
41-
`data:image/svg+xml` +
41+
`data:image/svg+xml;utf8,` +
4242
`<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>${emoji}</text></svg>`
4343
);
4444
};
@@ -56,4 +56,4 @@ export default function Root() {
5656
</MetaProvider>
5757
);
5858
}
59-
```
59+
```

0 commit comments

Comments
 (0)