diff --git a/src/lib/state/reader.svelte.ts b/src/lib/state/reader.svelte.ts index a979389..696d7b9 100644 --- a/src/lib/state/reader.svelte.ts +++ b/src/lib/state/reader.svelte.ts @@ -80,10 +80,11 @@ class ReaderState { get settings() { return settingsState.settings; } openReader(chapter: Chapter, chapterList: Chapter[], manga?: Manga | null) { + const isChapterNav = this.activeChapter !== null; this.activeChapter = chapter; this.activeChapterList = chapterList; if (manga !== undefined) this.activeManga = manga; - goto(`/reader/${this.activeManga!.id}/${chapter.id}`); + goto(`/reader/${this.activeManga!.id}/${chapter.id}`, { replaceState: isChapterNav }); } closeReader() {