summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/page.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl
index 4683c137..0b483c26 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -342,7 +342,7 @@ transcriptDiv.appendChild(transcriptLink)
textTrack.addEventListener("cuechange",
function() {
var currentLocation = this.activeCues[0].startTime;
- if (chapter = chapterList.querySelector('data-start=["' + currentLocation + '"]')) {
+ if (chapter = chapterList.querySelector('li[data-start="' + currentLocation + '"]')) {
var locations = [].slice.call(chapterList.querySelectorAll("li"));
for (var i = 0; i < locations.length; ++i) {
locations[i].classList.remove("current");