Skip to content

Commit

Permalink
Remove TODO and add thumbnail to Embed slice
Browse files Browse the repository at this point in the history
  • Loading branch information
rcantin-w committed Nov 19, 2024
1 parent 32a62e0 commit bfce97e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions common/views/components/VideoEmbed/VideoEmbed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ const VideoEmbed: FunctionComponent<Props> = ({
const isVimeo = videoProvider === 'Vimeo';

useEffect(() => {
// TODO do we need analytics consent for vimeo?
// Do we need this?
/* <script src="https://player.vimeo.com/api/player.js"></script> */

if (isYouTube && hasAnalyticsConsent) {
// GA4 automatically tracks YouTube engagement, but requires the iframe api
// script to have been loaded on the page. Since we're lazyloading youtube
Expand Down
4 changes: 2 additions & 2 deletions content/webapp/services/prismic/transformers/body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ export function transformEmbedSlice(
value: {
embedUrl: getVimeoEmbedUrl(embed),
videoProvider: 'Vimeo',
// TODO? Do we want to support it on legacy guides?
// videoThumbnail
videoThumbnail:
(embed.thumbnail_url_with_play_button as string) || undefined,
caption: slice.primary.caption,
transcript: slice.primary.transcript,
},
Expand Down

0 comments on commit bfce97e

Please sign in to comment.