Avoid native login dialog when JWT token expires

This commit is contained in:
adityachandelgit
2025-05-19 21:50:27 -06:00
parent 721967f116
commit af1cccbaab
4 changed files with 14 additions and 4 deletions
@@ -321,7 +321,7 @@ export class EpubViewerComponent implements OnInit, OnDestroy {
private trackProgress(): void {
if (!this.book || !this.rendition) return;
this.rendition.on('relocated', (location: any) => {
const cfi = location.start.cfi;
const cfi = location.end.cfi;
const currentIndex = location.start.index;
const totalSpineItems = this.book.spine.items.length;
let percentage: number;