ydshieh HF staff commited on
Commit
68e4081
1 Parent(s): 33d310c

Update transcript-tracer.js

Browse files
Files changed (1) hide show
  1. transcript-tracer.js +6 -2
transcript-tracer.js CHANGED
@@ -491,7 +491,9 @@ function handleWordClick(e) {
491
  }
492
 
493
  // pause
494
- ttActivePlayer.pause()
 
 
495
 
496
  }
497
 
@@ -524,7 +526,9 @@ function handleWordDBClick(e) {
524
  }
525
 
526
  // pause
527
- ttActivePlayer.play()
 
 
528
  }
529
 
530
 
 
491
  }
492
 
493
  // pause
494
+ if (ttActivePlayer != null) {
495
+ ttActivePlayer.pause()
496
+ }
497
 
498
  }
499
 
 
526
  }
527
 
528
  // pause
529
+ if (ttActivePlayer != null) {
530
+ ttActivePlayer.play()
531
+ }
532
  }
533
 
534