Skip to content

Commit

Permalink
Fix media overlay
Browse files Browse the repository at this point in the history
foliate-js no longer outputs durations for each item. Only the total for
the entire publication. See f1a1602.
  • Loading branch information
johnfactotum committed Sep 26, 2024
1 parent f1a1602 commit e6e19ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/book-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6e19ae

Please sign in to comment.