mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Merge pull request #542 from Sunil-bb/fix-for-528-534
Fix for 534 and 528
This commit is contained in:
commit
5269cfc4f8
2 changed files with 1 additions and 16 deletions
|
@ -288,12 +288,8 @@ class DefaultViewManager {
|
|||
} else {
|
||||
next = this.views.last().section.next();
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
next = this.views.last().section.next();
|
||||
|
||||
}
|
||||
|
||||
if(next) {
|
||||
|
|
|
@ -242,18 +242,7 @@ class Rendition {
|
|||
return displayed;
|
||||
}
|
||||
|
||||
// Trim the target fragment
|
||||
// removing the chapter
|
||||
if(!isCfiString && typeof target === "string" &&
|
||||
target.indexOf("#") > -1) {
|
||||
moveTo = target.substring(target.indexOf("#")+1);
|
||||
}
|
||||
|
||||
if (isCfiString) {
|
||||
moveTo = target;
|
||||
}
|
||||
|
||||
return this.manager.display(section, moveTo)
|
||||
return this.manager.display(section, target)
|
||||
.then(function(){
|
||||
// this.emit("displayed", section);
|
||||
}.bind(this));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue