From 319757b7c3cf7bcaa452eeded0e0f318663cb8d5 Mon Sep 17 00:00:00 2001 From: Pranav Yeole Date: Fri, 8 Nov 2024 17:06:09 +0530 Subject: [PATCH] fix: add dynamic video type in save.js --- assets/src/blocks/rt-player/save.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/src/blocks/rt-player/save.js b/assets/src/blocks/rt-player/save.js index fd5989f..2413734 100644 --- a/assets/src/blocks/rt-player/save.js +++ b/assets/src/blocks/rt-player/save.js @@ -22,7 +22,7 @@ import { useBlockProps } from '@wordpress/block-editor'; * @return {HTMLElement} Element to render. */ export default function save( { attributes } ) { - const { videoUrl, videoAlt, videoSize, videoPosterUrl, useCustomSize } = attributes; + const { videoUrl, videoAlt, videoSize, videoType, videoPosterUrl, useCustomSize } = attributes; const videoSetupOptions = { controls: true, @@ -44,7 +44,7 @@ export default function save( { attributes } ) { width={ useCustomSize ? videoSize.width : '100%' } height={ useCustomSize ? videoSize.height : 'auto' } > - + ) }