ydshieh HF staff commited on
Commit
dd8cf60
1 Parent(s): 17a4757

Update transcript-tracer.js

Browse files
Files changed (1) hide show
  1. transcript-tracer.js +1 -2
transcript-tracer.js CHANGED
@@ -462,8 +462,7 @@ function handleWordClick(e) {
462
 
463
  ttLinkedDataByMediaUrl[mediaUrl].mediaElement.currentTime = startSeconds;
464
 
465
- if (!ttActivePlayer || !(ttActivePlayer.dataset.ttLinkedMediaUrl in ttLinkedDataByMediaUrl)) return;
466
- var ttData = ttLinkedDataByMediaUrl[ttActivePlayer.dataset.ttLinkedMediaUrl];
467
 
468
  // Make sure the correct transcript is selected
469
  if (!ttCurrentTranscript || ttCurrentTranscript.dataset.ttTranscript != ttData.transcriptIndex) {
 
462
 
463
  ttLinkedDataByMediaUrl[mediaUrl].mediaElement.currentTime = startSeconds;
464
 
465
+ var ttData = ttLinkedDataByMediaUrl[mediaUrl];
 
466
 
467
  // Make sure the correct transcript is selected
468
  if (!ttCurrentTranscript || ttCurrentTranscript.dataset.ttTranscript != ttData.transcriptIndex) {