Skip to content

Commit

Permalink
Fix native share by matching the newest iframe API (ampproject#39302)
Browse files Browse the repository at this point in the history
  • Loading branch information
ychsieh authored and eszponder committed Apr 22, 2024
1 parent 12d1a20 commit 9803983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amp-story-player/amp-story-player-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ export class AmpStoryPlayer {
setStyle(iframeEl, 'backgroundImage', story.posterImage);
}
iframeEl.classList.add('story-player-iframe');
iframeEl.setAttribute('allow', 'autoplay');
iframeEl.setAttribute('allow', 'autoplay; web-share');

applySandbox(iframeEl);
this.addSandboxFlags_(iframeEl);
Expand Down

0 comments on commit 9803983

Please sign in to comment.