diff --git a/common/lib/xmodule/xmodule/js/src/video/01_initialize.js b/common/lib/xmodule/xmodule/js/src/video/01_initialize.js index fea584b879f..c2b703fafaa 100644 --- a/common/lib/xmodule/xmodule/js/src/video/01_initialize.js +++ b/common/lib/xmodule/xmodule/js/src/video/01_initialize.js @@ -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;