1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00
This commit is contained in:
Shuhao Tong 2025-04-02 00:18:56 +08:00 committed by GitHub
commit 8cdb0f1d76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,7 +88,8 @@ class Navigation {
} }
if(target.indexOf("#") === 0) { if(target.indexOf("#") === 0) {
index = this.tocById[target.substring(1)]; target = target.substring(1);
index = this.tocById[target];
} else if(target in this.tocByHref){ } else if(target in this.tocByHref){
index = this.tocByHref[target]; index = this.tocByHref[target];
} }