diff options
Diffstat (limited to '')
-rw-r--r-- | templates/page.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl index a29d8531..4683c137 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -354,8 +354,8 @@ transcriptDiv.appendChild(transcriptLink) } } - document.querySelectorAll('track[kind=chapters]').forEach(function(e) { - e.setAttribute(onLoad, 'displayChapters(this)'); }); + document.querySelectorAll('track[kind=chapters]').forEach(function(e) { e.addEventListener('load', function() { displayChapters(e); });}); + // @license-end </script> </body> |