Introduce "getReaderOpenChapterLocationState" function

This commit is contained in:
schroda
2025-02-03 17:17:35 +01:00
parent a6f015d5e3
commit a80e8885fb
4 changed files with 9 additions and 3 deletions
+6
View File
@@ -459,4 +459,10 @@ export class Chapters {
return ReaderResumeMode.LAST_READ;
}
static getReaderOpenChapterLocationState(chapter: ChapterReadInfo): { resumeMode: ReaderResumeMode } {
return {
resumeMode: Chapters.getReaderResumeMode(chapter),
};
}
}