Skip to content

Commit

Permalink
fix: added _youtubeApiDeferred.resolve();
Browse files Browse the repository at this point in the history
  • Loading branch information
BetoFandino authored and Gi-ron committed Jul 12, 2024
1 parent 1ad9414 commit cc5a327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/lib/xmodule/xmodule/js/src/video/01_initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function(VideoPlayer, i18n, moment, _) {
_oldOnYouTubeIframeAPIReady = window.onYouTubeIframeAPIReady || undefined;

window.onYouTubeIframeAPIReady = function() {
window.onYouTubeIframeAPIReady.resolve();
_youtubeApiDeferred.resolve();
};

window.onYouTubeIframeAPIReady.resolve = _youtubeApiDeferred.resolve;
Expand Down

0 comments on commit cc5a327

Please sign in to comment.