Skip to content

Commit c8a61c8

Browse files
author
Oleksandr Gorkun
committed
MAGETWO-93272: [Backport for 2.2.x] Product Video feature not GDPR compliant
1 parent f0d9adc commit c8a61c8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/code/Magento/ProductVideo/view/adminhtml/web/js/get-video-information.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ define([
169169
if (self.useYoutubeNocookie) {
170170
host = 'https://www.youtube-nocookie.com';
171171
}
172+
172173
if (self._player !== undefined) {
173174
return;
174175
}

app/code/Magento/ProductVideo/view/frontend/web/js/fotorama-add-video-events.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ define([
7272
} else if (href.host.match(/youtube\.com|youtu\.be|youtube-nocookie.com/)) {
7373
id = href.pathname.replace(/^\/(embed\/|v\/)?/, '').replace(/\/.*/, '');
7474
type = 'youtube';
75+
7576
if (href.host.match(/youtube-nocookie.com/)) {
7677
useYoutubeNocookie = true;
7778
}

0 commit comments

Comments
 (0)