mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-10 10:18:23 +00:00
fix syntax
This commit is contained in:
parent
adead97b23
commit
ded13b14c9
@ -70,9 +70,11 @@
|
|||||||
export default {
|
export default {
|
||||||
methods: {
|
methods: {
|
||||||
isCurrentChapter(chapters, index, playerPosition) {
|
isCurrentChapter(chapters, index, playerPosition) {
|
||||||
if (index + 1 === chapters.length && playerPosition >= chapters[index].start) return true;
|
if (index + 1 == chapters.length) {
|
||||||
else if (index + 1 === chapters.length) return false;
|
if (playerPosition >= chapters[index].start) return true;
|
||||||
else if (playerPosition >= chapters[index].start && playerPosition < chapters[index + 1].start) return true;
|
else return false;
|
||||||
|
} else if (playerPosition >= chapters[index].start && playerPosition < chapters[index + 1].start)
|
||||||
|
return true;
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user