diff --git a/modules/islandora_audio/js/audio.js b/modules/islandora_audio/js/audio.js index de0daec73..97e29fd5b 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); + } } } }