Archived
fix: cleanup
This commit is contained in:
@@ -67,11 +67,6 @@ export function percentageFromCfi(rendition: EpubRendition, cfi: string): number
|
||||
}
|
||||
}
|
||||
|
||||
export function spineLength(rendition: EpubRendition): number {
|
||||
const items = rendition.book?.spine?.spineItems;
|
||||
return items?.length ?? 0;
|
||||
}
|
||||
|
||||
/** Map nav/TOC href to a spine href epub.js can display. */
|
||||
export function resolveSpineHref(book: EpubBookForNav, href: string): string {
|
||||
const hashIndex = href.indexOf("#");
|
||||
|
||||
Reference in New Issue
Block a user