Skip to content

Commit

Permalink
MWPW-167455: Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
zagi25 committed Feb 20, 2025
1 parent 1bd1b6e commit 3b2efe7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions libs/blocks/figure/figure.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ export function buildFigure(blockEl) {
// picture, video, or embed link is NOT wrapped in P tag
const tags = ['PICTURE', 'VIDEO', 'A'];
if (tags.includes(child.nodeName) || (child.nodeName === 'SPAN' && child.classList.contains('modal-img-link'))) {
if (child.href?.includes('.mp4')) {
const videoPlaceholderLink = `<p>${child.outerHTML}</p>`;
const videoLink = htmlToElement(videoPlaceholderLink);
decorateVideo(videoLink, figEl);
}
figEl.prepend(child);
} else {
// content wrapped in P tag(s)
Expand Down

0 comments on commit 3b2efe7

Please sign in to comment.