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

@@ -27,7 +27,7 @@ export function ResumeFab({ chapter }: { chapter: ChapterMangaInfo & ChapterSour
variant="extended"
color="primary"
to={Chapters.getReaderUrl(chapter)}
state={{ resumeMode: Chapters.getReaderResumeMode(chapter) }}
state={Chapters.getReaderOpenChapterLocationState(chapter)}
>
<PlayArrow />
{sourceOrder === 1 ? t('global.button.start') : t('global.button.resume')}