diff --git a/src/book-viewer.js b/src/book-viewer.js index 5b737b70..89fb4732 100644 --- a/src/book-viewer.js +++ b/src/book-viewer.js @@ -747,7 +747,7 @@ export const BookViewer = GObject.registerClass({ this._navbar.loadSectionFractions(reader.sectionFractions) this._navbar.loadPageList(book.pageList, reader.pageTotal) this._navbar.loadLandmarks(book.landmarks) - this._navbar.setTTSType(book.media?.duration?.[''] ? 'media-overlay' : 'tts') + this._navbar.setTTSType(book.media?.duration ? 'media-overlay' : 'tts') const cover = await this._view.getCover() this.#cover = cover