summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/page.tmpl3
1 files changed, 2 insertions, 1 deletions
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
</script>
</body>