From 3b2efe7fe485daeda9582055553ca5309337b878 Mon Sep 17 00:00:00 2001 From: Ratko Zagorac Date: Thu, 20 Feb 2025 16:02:37 +0100 Subject: [PATCH] MWPW-167455: Remove unnecessary code --- libs/blocks/figure/figure.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libs/blocks/figure/figure.js b/libs/blocks/figure/figure.js index 542c377484..4581314cba 100644 --- a/libs/blocks/figure/figure.js +++ b/libs/blocks/figure/figure.js @@ -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 = `

${child.outerHTML}

`; - const videoLink = htmlToElement(videoPlaceholderLink); - decorateVideo(videoLink, figEl); - } figEl.prepend(child); } else { // content wrapped in P tag(s)