mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 09:19:56 -05:00
fix: X closes reader to origin page, not previous chapter
This commit is contained in:
@@ -80,10 +80,11 @@ class ReaderState {
|
|||||||
get settings() { return settingsState.settings; }
|
get settings() { return settingsState.settings; }
|
||||||
|
|
||||||
openReader(chapter: Chapter, chapterList: Chapter[], manga?: Manga | null) {
|
openReader(chapter: Chapter, chapterList: Chapter[], manga?: Manga | null) {
|
||||||
|
const isChapterNav = this.activeChapter !== null;
|
||||||
this.activeChapter = chapter;
|
this.activeChapter = chapter;
|
||||||
this.activeChapterList = chapterList;
|
this.activeChapterList = chapterList;
|
||||||
if (manga !== undefined) this.activeManga = manga;
|
if (manga !== undefined) this.activeManga = manga;
|
||||||
goto(`/reader/${this.activeManga!.id}/${chapter.id}`);
|
goto(`/reader/${this.activeManga!.id}/${chapter.id}`, { replaceState: isChapterNav });
|
||||||
}
|
}
|
||||||
|
|
||||||
closeReader() {
|
closeReader() {
|
||||||
|
|||||||
Reference in New Issue
Block a user