@prose-reader/core 1.34.0 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prose.js +9 -9
- package/dist/prose.js.map +1 -1
- package/dist/prose.umd.cjs +9 -9
- package/dist/prose.umd.cjs.map +1 -1
- package/package.json +3 -3
package/dist/prose.js
CHANGED
|
@@ -750,18 +750,18 @@ const getChapterInfo = (href, tocItem, manifest) => {
|
|
|
750
750
|
const spineItemIsBeforeThisTocItem = spineItemIndex < spineItemIndexOfPossibleCandidate;
|
|
751
751
|
if (spineItemIsBeforeThisTocItem)
|
|
752
752
|
return acc;
|
|
753
|
-
|
|
754
|
-
title: tocItem2.title,
|
|
755
|
-
path: tocItem2.path
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
const subInfo = getChapterInfo(href, tocItem2.contents, manifest);
|
|
759
|
-
if (subInfo) {
|
|
760
|
-
return {
|
|
761
|
-
subChapter: subInfo,
|
|
753
|
+
const info = {
|
|
762
754
|
title: tocItem2.title,
|
|
763
755
|
path: tocItem2.path
|
|
764
756
|
};
|
|
757
|
+
const subInfo = getChapterInfo(href, tocItem2.contents, manifest);
|
|
758
|
+
if (subInfo) {
|
|
759
|
+
return {
|
|
760
|
+
...info,
|
|
761
|
+
subChapter: subInfo
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
return info;
|
|
765
765
|
}
|
|
766
766
|
return acc;
|
|
767
767
|
}, void 0);
|