Skip to content

Commit

Permalink
Fix attribute name for Video block
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Aug 14, 2024
1 parent 3ef1bd0 commit d63beb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/block-library/src/video/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ const transforms = {
poster: videoElement.getAttribute( 'poster' ) || undefined,
src: videoElement.getAttribute( 'src' ) || undefined,
};
if ( isBlobURL( attributes.url ) ) {
attributes.blob = attributes.url;
delete attributes.url;
if ( isBlobURL( attributes.src ) ) {
attributes.blob = attributes.src;
delete attributes.src;
}
return createBlock( 'core/video', attributes );
},
Expand Down

0 comments on commit d63beb9

Please sign in to comment.