Skip to content

Commit

Permalink
Update YoutubeFeedWidget.js
Browse files Browse the repository at this point in the history
  • Loading branch information
justoverclockl authored Aug 13, 2021
1 parent 75fc70d commit eb7097c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/common/components/YoutubeFeedWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class YoutubeFeedWidget extends Widget {
var videoNumber = iframe.getAttribute('vnum') ? Number(iframe.getAttribute('vnum')) : 0;
var link = data.items[videoNumber].link;
var id = link.substr(link.indexOf('=') + 1);
iframe.setAttribute('src', 'https://youtube.com/embed/' + id + '?controls=1&autoplay=1');
iframe.setAttribute('src', 'https://youtube.com/embed/' + id + '?controls=1&autoplay=0');
});
}

Expand Down

0 comments on commit eb7097c

Please sign in to comment.