File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ define([
2020 }
2121
2222 return function ( config , element ) {
23- const $element = $ ( element ) ;
24- const videoElement = $element [ 0 ] ;
25- const ElementStyles = window . getComputedStyle ( element ) ;
26- const height = ElementStyles . minHeight || '300px' ;
27- const width = ElementStyles . width || '400px' ;
23+ const videoElementContainer = $ ( element ) ;
24+ const videoElement = videoElementContainer [ 0 ] ;
25+ const videoElementStyles = window . getComputedStyle ( element ) ;
26+ const height = videoElementStyles . minHeight || '300px' ;
27+ const width = videoElementStyles . width || '400px' ;
2828
29- if ( $element . data ( 'background-type' ) !== 'video' ) {
29+ if ( videoElementContainer . data ( 'background-type' ) !== 'video' ) {
3030 originalWidget ( config , element ) ;
3131 return ;
3232 }
You can’t perform that action at this time.
0 commit comments