mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
fix bad syntax
This commit is contained in:
parent
6f0897a263
commit
e68e73794e
1 changed files with 4 additions and 5 deletions
|
@ -71,11 +71,10 @@ export default {
|
|||
methods: {
|
||||
isCurrentChapter(chapters, index, playerPosition) {
|
||||
if (index + 1 == chapters.length) {
|
||||
if (playerPosition >= chapters[index].start) return true;
|
||||
else return false;
|
||||
} else if (playerPosition >= chapters[index].start && playerPosition < chapters[index + 1].start)
|
||||
return true;
|
||||
return false;
|
||||
return playerPosition >= chapters[index].start;
|
||||
} else {
|
||||
return playerPosition >= chapters[index].start && playerPosition < chapters[index + 1].start;
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue