Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Clayton committed Nov 5, 2024
1 parent dc9ec7c commit ae18ea7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libs/blocks/carousel/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function jumpToDirection(activeSlideIndex, jumpToIndex, slideContainer) {
function checkSlideForVideo(activeSlide) {
const video = activeSlide.querySelector('video');
/* c8 ignore start */
if (video && video.played.length > 0) {
if (video?.played.length > 0) {
video.pause();
}
/* c8 ignore end */
Expand Down Expand Up @@ -336,8 +336,7 @@ function handleChangingSlides(carouselElements) {
function convertMpcMp4(slides) {
slides.forEach((slide) => {
const a = slide.querySelector('a');
if (!a) return;
if (a.href.includes('images-tv.adobe')) {
if (a?.href.includes('images-tv.adobe')) {
decorateAnchorVideo({
src: a.href,
anchorTag: a,
Expand Down

0 comments on commit ae18ea7

Please sign in to comment.