Introduce "getReaderOpenChapterLocationState" function

This commit is contained in:
schroda
2025-02-01 19:48:24 +01:00
parent a6f015d5e3
commit a80e8885fb
4 changed files with 9 additions and 3 deletions

View File

@@ -459,4 +459,10 @@ export class Chapters {
return ReaderResumeMode.LAST_READ;
}
static getReaderOpenChapterLocationState(chapter: ChapterReadInfo): { resumeMode: ReaderResumeMode } {
return {
resumeMode: Chapters.getReaderResumeMode(chapter),
};
}
}