mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
updatedpath for bookURL
This commit is contained in:
parent
ce18f4ff15
commit
493f565b73
3 changed files with 3 additions and 3 deletions
BIN
.DS_Store
vendored
BIN
.DS_Store
vendored
Binary file not shown.
|
@ -205,7 +205,7 @@ input:-moz-placeholder {
|
||||||
#toc li:active,
|
#toc li:active,
|
||||||
#toc li.currentChapter
|
#toc li.currentChapter
|
||||||
{
|
{
|
||||||
list-style: square;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#toc a {
|
#toc a {
|
||||||
|
|
|
@ -76,7 +76,7 @@ FP.Book.prototype.start = function(bookUrl){
|
||||||
|
|
||||||
if(this.bookUrl.search(window.location.origin) == -1){
|
if(this.bookUrl.search(window.location.origin) == -1){
|
||||||
//-- get full path
|
//-- 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
|
//-- 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.spine = JSON.parse(localStorage.getItem("spine"));
|
||||||
this.toc = JSON.parse(localStorage.getItem("toc"));
|
this.toc = JSON.parse(localStorage.getItem("toc"));
|
||||||
|
|
||||||
if(!this.assets.length || !this.spine.length){
|
if(!this.assets || !this.spine){
|
||||||
this.stored = 0;
|
this.stored = 0;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue