diff --git a/.DS_Store b/.DS_Store index 09306e3..25e877c 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/css/main.css b/css/main.css index 6e9d7e5..4281fdc 100755 --- a/css/main.css +++ b/css/main.css @@ -205,7 +205,7 @@ input:-moz-placeholder { #toc li:active, #toc li.currentChapter { - list-style: square; + list-style: none; } #toc a { diff --git a/fpjs/render/book.js b/fpjs/render/book.js index 1ea142c..dc0e74b 100644 --- a/fpjs/render/book.js +++ b/fpjs/render/book.js @@ -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; }