fix: X closes reader to origin page, not previous chapter

This commit is contained in:
frozenKelp
2026-06-09 20:58:43 +05:30
parent 32bdeb92ff
commit 0b6372bd17
+2 -1
View File
@@ -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() {