Skip to content

Commit

Permalink
πŸ› [amp-story] fix FIE media selector (#37102)
Browse files Browse the repository at this point in the history
* replace

* remove iframe selector
  • Loading branch information
calebcordry committed Dec 3, 2021
1 parent e75e123 commit 3179bb9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extensions/amp-story/1.0/amp-story-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export const Selectors = {
'amp-story-grid-layer amp-video, amp-story-grid-layer amp-img, ' +
'amp-story-grid-layer amp-anim',
ALL_AMP_VIDEO: 'amp-story-grid-layer amp-video',
ALL_IFRAMED_MEDIA: 'audio, video',
ALL_PLAYBACK_AMP_MEDIA:
'amp-story-grid-layer amp-audio, amp-story-grid-layer amp-video',
// TODO(gmajoulet): Refactor the way these selectors are used. They will be
Expand Down Expand Up @@ -757,7 +756,7 @@ export class AmpStoryPage extends AMP.BaseElement {
iterateCursor(
scopedQuerySelectorAll(
fie.win.document.body,
Selectors.ALL_IFRAMED_MEDIA
selector.replace(/amp-story-grid-layer/g, '')
),
(el) => mediaSet.push(el)
);
Expand Down

0 comments on commit 3179bb9

Please sign in to comment.