Skip to content

Commit

Permalink
Replace deprecated allowfullscreen with allow="fullscreen" for if…
Browse files Browse the repository at this point in the history
…rame element
  • Loading branch information
roger2hk committed Mar 18, 2024
1 parent 4e9096c commit 4cab026
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions themes/binary/assets/scripts/shared/banner-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4cab026

Please sign in to comment.