aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static/js/transcript-table.js
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/static/js/transcript-table.js')
-rw-r--r--youtube/static/js/transcript-table.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube/static/js/transcript-table.js b/youtube/static/js/transcript-table.js
index 235b1e4..6b57911 100644
--- a/youtube/static/js/transcript-table.js
+++ b/youtube/static/js/transcript-table.js
@@ -87,6 +87,7 @@ window.addEventListener('DOMContentLoaded', function() {
option.appendChild(text(tt.label));
select_tt.appendChild(option);
}
+ select_tt.selectedIndex = getDefaultTranscriptTrackIdx();
select_tt.addEventListener("change", loadCues);
divR.appendChild(select_tt);
@@ -96,7 +97,7 @@ window.addEventListener('DOMContentLoaded', function() {
divR.appendChild(table_tt);
tts.addEventListener("change", (e) => {
- console.log(e);
+ // console.log(e);
var idx = getActiveTranscriptTrackIdx(); // sadly not provided by 'e'
if (tts[idx].mode == "showing") {
select_tt.selectedIndex = idx;