Skip to content
Snippets Groups Projects
Commit 46bc8788 authored by Kevin von Spiczak's avatar Kevin von Spiczak
Browse files

[TASK] remove autoplay attribute, tweak allow list

parent 08f3a840
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,10 @@ module.exports = function() {
$vimeoItem.magnificPopup({
type: 'iframe',
iframe: {
markup: '<div class="mfp-iframe-scaler">' +
'<div class="mfp-close"></div>' +
'<iframe class="mfp-iframe" frameborder="0" allowfullscreen allow="autoplay; fullscreen *; picture-in-picture"></iframe>' +
'</div>',
patterns: {
vimeo: {
index: 'vimeo.com/',
......@@ -57,7 +61,7 @@ module.exports = function() {
'<div class="embed-container" style="padding-bottom: calc(' + height + ' / ' + width + ' * 100%);">' +
'<iframe ' +
'width="' + width + '" height="' + height + '" ' +
'src="https://player.vimeo.com/video/' + queryString + '?autoplay=1&dnt=1" frameborder="0" ' +
'src="https://player.vimeo.com/video/' + queryString + '?dnt=1" frameborder="0" ' +
'allow="autoplay; fullscreen; picture-in-picture" allowfullscreen>' +
'</iframe>' +
'</div></div>');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment