diff --git a/src/managers/default/index.js b/src/managers/default/index.js index 845953c..e4bd4a7 100644 --- a/src/managers/default/index.js +++ b/src/managers/default/index.js @@ -288,12 +288,8 @@ class DefaultViewManager { } else { next = this.views.last().section.next(); } - - } else { - next = this.views.last().section.next(); - } if(next) { diff --git a/src/rendition.js b/src/rendition.js index 4c03274..810b581 100644 --- a/src/rendition.js +++ b/src/rendition.js @@ -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));