From 9730c31bffb4bd67c3db31d67965f874ba261a40 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Wed, 24 Nov 2021 02:10:53 -0500 Subject: .. let's try setting the attribute? --- templates/page.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates/page.tmpl') diff --git a/templates/page.tmpl b/templates/page.tmpl index 14c7fa40..a29d8531 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -354,7 +354,8 @@ transcriptDiv.appendChild(transcriptLink) } } - document.querySelectorAll('track[kind=chapters]').forEach(function(e) { e.addEventListener('load', displayChapters); }); + document.querySelectorAll('track[kind=chapters]').forEach(function(e) { + e.setAttribute(onLoad, 'displayChapters(this)'); }); // @license-end -- cgit v1.2.3