mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-02 14:49:16 +02:00
Merge pull request #1237 from johnfactotum/fix-cfi-base
This commit is contained in:
commit
5c610143bf
2 changed files with 2 additions and 1 deletions
|
@ -167,6 +167,7 @@ class Packaging {
|
|||
// var manifestPropArray = manifestProps.length ? manifestProps.split(" ") : [];
|
||||
|
||||
var itemref = {
|
||||
"id" : item.getAttribute("id"),
|
||||
"idref" : idref,
|
||||
"linear" : item.getAttribute("linear") || "yes",
|
||||
"properties" : propArray,
|
||||
|
|
|
@ -51,7 +51,7 @@ class Spine {
|
|||
var spineItem;
|
||||
|
||||
item.index = index;
|
||||
item.cfiBase = this.epubcfi.generateChapterComponent(this.spineNodeIndex, item.index, item.idref);
|
||||
item.cfiBase = this.epubcfi.generateChapterComponent(this.spineNodeIndex, item.index, item.id);
|
||||
|
||||
if (item.href) {
|
||||
item.url = resolver(item.href, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue