Skip to content

Commit a2b3555

Browse files
committed
Improve video blocker, DEV-1618
1 parent 26a7f5b commit a2b3555

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

view/frontend/web/js/video-background-mixin.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)