Fix epub ereader theme sticking for other ebook formats

This commit is contained in:
advplyr
2023-06-18 12:56:32 -05:00
parent a96869f547
commit a8bc1df3e7
2 changed files with 7 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ export default {
},
/** @returns {Array<ePub.NavItem>} */
chapters() {
return this.book ? this.book.navigation.toc : []
return this.book?.navigation?.toc || []
},
userMediaProgress() {
if (!this.libraryItemId) return