mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
updatedpath for bookURL
This commit is contained in:
parent
ce18f4ff15
commit
493f565b73
3 changed files with 3 additions and 3 deletions
|
@ -76,7 +76,7 @@ FP.Book.prototype.start = function(bookUrl){
|
|||
|
||||
if(this.bookUrl.search(window.location.origin) == -1){
|
||||
//-- get full path
|
||||
this.bookUrl = window.location.origin + "/" + this.bookUrl;
|
||||
this.bookUrl = window.location.origin + window.location.pathname + this.bookUrl;
|
||||
}
|
||||
|
||||
//-- TODO: Check what storage types are available
|
||||
|
@ -133,7 +133,7 @@ FP.Book.prototype.isSaved = function(force) {
|
|||
this.spine = JSON.parse(localStorage.getItem("spine"));
|
||||
this.toc = JSON.parse(localStorage.getItem("toc"));
|
||||
|
||||
if(!this.assets.length || !this.spine.length){
|
||||
if(!this.assets || !this.spine){
|
||||
this.stored = 0;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue