1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00
This commit is contained in:
Fred Chasen 2013-12-03 13:02:15 -08:00
parent b9a7ffb7e6
commit d06e5b219e
7 changed files with 13 additions and 8 deletions

View file

@ -1333,6 +1333,11 @@ EPUBJS.Book.prototype.prevChapter = function() {
return this.displayChapter(this.spinePos, true);
};
EPUBJS.Book.prototype.getCurrentLocationCfi = function() {
if(!this.isRendered) return false;
return this.render.currentLocationCfi;
};
EPUBJS.Book.prototype.gotoCfi = function(cfi){
if(!this.isRendered) return this._enqueue("gotoCfi", arguments);
return this.displayChapter(cfi);