mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2026-06-16 11:50:41 -04:00
Prevent rendering when the first chapter is labeled "Chapter 0"
This commit is contained in:
2
src/assets/lib/kookit.min.js
vendored
2
src/assets/lib/kookit.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -453,6 +453,12 @@ class Viewer extends React.Component<ViewerProps, ViewerState> {
|
||||
) {
|
||||
return;
|
||||
}
|
||||
if (
|
||||
flattenChapters.length > 0 &&
|
||||
flattenChapters[0].label === "Chapter 0"
|
||||
) {
|
||||
return;
|
||||
}
|
||||
setTimeout(async () => {
|
||||
await rendition.refreshContent();
|
||||
let chapters = rendition.getChapter();
|
||||
|
||||
Reference in New Issue
Block a user