Skip to content

Commit 1336879

Browse files
committed
Improve code, DEV-1111
Signed-off-by: Iman Aboheydary <[email protected]>
1 parent cb4c893 commit 1336879

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

view/frontend/templates/script.phtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ use Magento\Framework\View\Helper\SecureHtmlRenderer;
1010

1111
$viewModel = $block->getData('view_model')
1212
?>
13-
<?= /* @noEscape */
14-
$viewModel->getScript() ?>
13+
<?= /* @noEscape */$viewModel->getScript() ?>
1514
<?php
1615

1716
if ($viewModel->isGoogleConsentModeEnabled()) {

view/frontend/web/js/fotorama-video-events-mixin.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ define([
1212
if (!Cookiebot?.consent?.marketing && blockVideoConsentConfig) {
1313
const videoElement = event.target.querySelector('.product-video');
1414
if (!Cookiebot?.consent?.marketing) {
15-
// Add placeholder before each video element
16-
// videoElements.forEach(function(videoElement) {
1715
if (Cookiebot?.consent?.marketing) {
1816
return;
1917
}
@@ -47,8 +45,6 @@ define([
4745
paragraphElement.style.zIndex = "1000";
4846
paragraphElement.style.position = "relative";
4947
videoElement.parentNode.insertBefore(divElement, videoElement);
50-
// });
51-
5248
return;
5349
} else {
5450

0 commit comments

Comments
 (0)