mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: 🔒 Add crossorigin attributes to every image element
This commit is contained in:
parent
74425cd62e
commit
cafe272429
16 changed files with 29 additions and 25 deletions
|
|
@ -36,6 +36,7 @@ export const useParsedContent = (
|
|||
return match;
|
||||
}
|
||||
const image = document.createElement("img");
|
||||
image.crossOrigin = "anonymous";
|
||||
image.src = emojiData.url;
|
||||
image.alt = `:${emoji}:`;
|
||||
image.title = emojiData.shortcode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue