Skip to content

Commit 0a8f9d7

Browse files
committed
change allowfullscreen setting
1 parent 3470544 commit 0a8f9d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Resources/contao/templates/ce_vimeo.html5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
iframe.src = this.dataset['video'];
1414
iframe.width = <?= $this->width ?>;
1515
iframe.height = <?= $this->height ?>;
16-
iframe.allowfullscreen = '';
16+
iframe.setAttribute('allowfullscreen', '');
1717
this.parentNode.replaceChild(iframe, this);
1818
});
1919
</script>

src/Resources/contao/templates/ce_youtube.html5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
iframe.src = this.dataset['video'];
1414
iframe.width = <?= $this->width ?>;
1515
iframe.height = <?= $this->height ?>;
16-
iframe.allowfullscreen = '';
16+
iframe.setAttribute('allowfullscreen', '');
1717
this.parentNode.replaceChild(iframe, this);
1818
});
1919
</script>

0 commit comments

Comments
 (0)