Add bidirectional Kobo reading progress sync (#2791)
* Add bidirectional Kobo reading progress sync * Gate all two-way sync paths behind the toggle * Add comprehensive unit tests for Kobo services --------- Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
@@ -273,6 +273,8 @@ export class EbookReaderComponent implements OnInit, OnDestroy {
|
||||
// Navigate to saved position if progress exists, otherwise go to first page
|
||||
if (book.epubProgress?.cfi) {
|
||||
return this.viewManager.goTo(book.epubProgress.cfi);
|
||||
} else if (book.epubProgress?.percentage && book.epubProgress.percentage > 0) {
|
||||
return this.viewManager.goToFraction(book.epubProgress.percentage / 100);
|
||||
} else {
|
||||
return this.viewManager.goTo(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user