We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50c206d + 55d0220 commit 8f379c2Copy full SHA for 8f379c2
view/frontend/web/js/fotorama-video-events-mixin.js
@@ -22,6 +22,11 @@ define([
22
addEventListener('CookiebotOnAccept', () => {
23
if (Cookiebot?.consent?.marketing) {
24
const cookiebotOutput = document?.querySelector('.cookieconsent-optout-marketing');
25
+
26
+ if (!cookiebotOutput) {
27
+ return;
28
+ }
29
30
const videoElement = cookiebotOutput.closest('.video-unplayed[aria-hidden="false"]');
31
32
const event = new PointerEvent('click', {
0 commit comments