Skip to content

Commit

Permalink
πŸ› amp-video NodeList to Array (#27940)
Browse files Browse the repository at this point in the history
Fixes #27931
  • Loading branch information
alanorozco committed Apr 22, 2020
1 parent d68d2cc commit 83c11c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/amp-video/0.1/amp-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class AmpVideo extends AMP.BaseElement {
return [videoSrc];
}
const srcs = [];
childElementsByTag(this.element, 'source').forEach((source) => {
toArray(childElementsByTag(this.element, 'source')).forEach((source) => {
const src = source.getAttribute('src');
if (src) {
srcs.push(src);
Expand Down

0 comments on commit 83c11c5

Please sign in to comment.