Fix:Native progress sync sending time in ms #78, Fix:Chapter start/end times are strings #83

This commit is contained in:
advplyr
2022-01-13 15:44:16 -06:00
parent 9da21b57c7
commit 42fec4831e
3 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ export default {
},
currentChapter() {
if (!this.audiobook || !this.chapters.length) return null
return this.chapters.find((ch) => ch.start <= this.currentTime && ch.end > this.currentTime)
return this.chapters.find((ch) => Number(ch.start) <= this.currentTime && Number(ch.end) > this.currentTime)
},
socketConnected() {
return this.$store.state.socketConnected