diff --git a/modules/islandora_audio/js/audio.js b/modules/islandora_audio/js/audio.js index de0daec7..97e29fd5 100644 --- a/modules/islandora_audio/js/audio.js +++ b/modules/islandora_audio/js/audio.js @@ -23,8 +23,10 @@ initialized = true; if ($('audio')[0].textTracks.length > 0) { $('audio')[0].textTracks[0].oncuechange = function() { + if (this.activeCues.length > 0) { var currentCue = this.activeCues[0].text; $('#audioTrack').html(currentCue); + } } } }