From da00dd7a306b1696d52dfb7ee5b8f3f9ce5f7541 Mon Sep 17 00:00:00 2001 From: railsjack Date: Fri, 9 Aug 2019 23:55:05 -0300 Subject: [PATCH] Cached playedIndex --- player/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/custom.js b/player/custom.js index 3338e96..3b369d8 100644 --- a/player/custom.js +++ b/player/custom.js @@ -205,7 +205,7 @@ document.ready(async (event) => { tutorialList.bindEvents('change', (e) => { Helper.setConf('currentTime', 0) player.play(tutorialList.selectedValue()) - Helper.setConf('playedIndex', this.UI.selectedIndex) + Helper.setConf('playedIndex', tutorialList.getIndex()) }) player.bindEvents('onended', (args) => {