aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plugins
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2021-01-29 22:46:49 +1100
committerSam Potts <sam@potts.es>2021-01-29 22:47:27 +1100
commitf4d6a243cd93d4d4b11be7a166a7dcfe80adfc14 (patch)
tree870b839cb8a933cd4f730ea15b58e86762e8bf37 /src/js/plugins
parent31b5027b1e4115a0266a28dfec73c96b31510f0b (diff)
downloadplyr-f4d6a243cd93d4d4b11be7a166a7dcfe80adfc14.tar.lz
plyr-f4d6a243cd93d4d4b11be7a166a7dcfe80adfc14.tar.xz
plyr-f4d6a243cd93d4d4b11be7a166a7dcfe80adfc14.zip
fix: use new syntax for iframe allow attribute
Diffstat (limited to 'src/js/plugins')
-rw-r--r--src/js/plugins/vimeo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/plugins/vimeo.js b/src/js/plugins/vimeo.js
index b050cc53..5fe41aba 100644
--- a/src/js/plugins/vimeo.js
+++ b/src/js/plugins/vimeo.js
@@ -104,7 +104,7 @@ const vimeo = {
const src = format(player.config.urls.vimeo.iframe, id, params);
iframe.setAttribute('src', src);
iframe.setAttribute('allowfullscreen', '');
- iframe.setAttribute('allow', 'autoplay,fullscreen,picture-in-picture');
+ iframe.setAttribute('allow', ['autoplay', 'fullscreen', 'picture-in-picture'].join('; '));
// Set the referrer policy if required
if (!is.empty(referrerPolicy)) {