Skip to content

Commit

Permalink
fix: insert video microdata by dangerouslySetInnerHTML (#1088)
Browse files Browse the repository at this point in the history
* fix(Media): fix video microdata
  • Loading branch information
aeksandla authored Dec 19, 2024
1 parent b10e79f commit 0cb669c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Media/Media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const Media = (props: MediaAllProps) => {
});

return video || youtube || videoIframe ? (
<script type="application/ld+json">{json}</script>
<script type="application/ld+json" dangerouslySetInnerHTML={{__html: json}} />
) : null;
}, [microdata?.contentUpdatedDate, previewImg, video, videoIframe, videoMicrodata, youtube]);

Expand Down

0 comments on commit 0cb669c

Please sign in to comment.