Skip to content

Commit d2255ca

Browse files
committed
Using 'current-chapter' instead of 'chapter' on playerdata.
1 parent c29bd37 commit d2255ca

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/views/Player.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,12 @@ export default {
227227
};
228228
229229
const onChaptersClicked = async () => {
230+
const currentChapter = playerData.value["current-chapter"] || playerData.value["chapter"];
230231
const buttons = playerData.value["chapter-list"].map((chapter, index) => {
231232
return {
232233
role: chapter.time,
233234
text: `${chapter.title} (${formatTime(chapter.time)})`,
234-
cssClass: playerData.value["chapter"] === index ? "actionSheetCurrentChapter" : ""
235+
cssClass: currentChapter === index ? "actionSheetCurrentChapter" : ""
235236
};
236237
});
237238

0 commit comments

Comments
 (0)