Skip to content

Commit

Permalink
additional console error msg for window.onYouTubeIframeAPIReady err
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlandia committed Jul 20, 2023
1 parent 4d0c936 commit b1b3621
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/lib/xmodule/xmodule/js/src/video/01_initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ function(VideoPlayer, i18n, moment, _) {
window.onYouTubeIframeAPIReady.resolve = _youtubeApiDeferred.resolve;
} catch (e) {
console.error('Error while trying to resolve the Deferred object responsible for calling OnYouTubeIframeAPIReady callbacks.');
console.error('window.onYouTubeIframeAPIReady is ' + window.onYouTubeIframeAPIReady);
console.error(e);
if (e instanceof TypeError) {
setupOnYouTubeIframeAPIReady(); // Try again up to defined max calls.
Expand Down

0 comments on commit b1b3621

Please sign in to comment.