mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-02 14:49:16 +02:00
Merge 767a443761
into f09089cf77
This commit is contained in:
commit
8cdb0f1d76
1 changed files with 2 additions and 1 deletions
|
@ -88,7 +88,8 @@ class Navigation {
|
|||
}
|
||||
|
||||
if(target.indexOf("#") === 0) {
|
||||
index = this.tocById[target.substring(1)];
|
||||
target = target.substring(1);
|
||||
index = this.tocById[target];
|
||||
} else if(target in this.tocByHref){
|
||||
index = this.tocByHref[target];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue