Skip to content

Commit

Permalink
fixed history for #202
Browse files Browse the repository at this point in the history
  • Loading branch information
mienaiyami committed Aug 25, 2023
1 parent 4490ce5 commit 444dafe
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/Components/EPubReader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -587,12 +587,21 @@ const EPubReader = () => {
}
if (doc) {
setNonEPUBFile(doc);
const mangaOpened = {
chapterName: linkSplitted.at(-1) || "~",
link,
pages: 0,
mangaName: linkSplitted.at(-2) || "~",
};
dispatch(setMangaInReader(mangaOpened));
dispatch(
setMangaInReader({
chapterName: linkSplitted.at(-1) || "~",
link,
pages: 0,
mangaName: linkSplitted.at(-2) || "~",
newHistory({
type: "image",
data: {
mangaOpened,
page: 0,
recordChapter: true,
},
})
);
dispatch(setReaderOpen(true));
Expand Down

0 comments on commit 444dafe

Please sign in to comment.