From 4cab026dd476698f699c89f13a3a0c38fd7e342e Mon Sep 17 00:00:00 2001 From: Roger Ng Date: Mon, 18 Mar 2024 17:48:45 +0000 Subject: [PATCH] Replace deprecated `allowfullscreen` with `allow="fullscreen"` for iframe element --- themes/binary/assets/scripts/shared/banner-video.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/themes/binary/assets/scripts/shared/banner-video.js b/themes/binary/assets/scripts/shared/banner-video.js index 6b5fb89..dc5e2c3 100644 --- a/themes/binary/assets/scripts/shared/banner-video.js +++ b/themes/binary/assets/scripts/shared/banner-video.js @@ -40,8 +40,7 @@ export default class BannerVideo { frame.frameborder = 'none'; frame.src = 'https://www.youtube.com/embed/' + this._element.getAttribute(this._ident) + '?&autoplay=1&rel=0'; frame.title = ''; - frame.allow = 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture'; - frame.allowfullscreen = 'allowfullscreen'; + frame.allow = 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen'; this._element.parentNode.prepend(frame);