diff options
Diffstat (limited to '')
-rw-r--r-- | templates/page.tmpl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl index b0cafcd0..14c7fa40 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -353,9 +353,8 @@ transcriptDiv.appendChild(transcriptLink) } } } -document.addEventListener('DOMContentLoaded', function() { - document.querySelectorAll('track[kind=chapters]').forEach(function(e) { displayChapters(e); }); -}, false); + + document.querySelectorAll('track[kind=chapters]').forEach(function(e) { e.addEventListener('load', displayChapters); }); // @license-end </script> </body> |