diff --git a/build/epub.js b/build/epub.js index 1dc7c23..c8baba0 100644 --- a/build/epub.js +++ b/build/epub.js @@ -3080,12 +3080,12 @@ EPUBJS.Book.prototype.prevPage = function() { EPUBJS.Book.prototype.nextChapter = function() { var next; - if (this.spinePos < this.spine.length - 1) { + if (this.spinePos < this.spine.length ) { next = this.spinePos + 1; while (this.spine[next] && this.spine[next].linear && this.spine[next].linear == 'no') { next++; } - if (next < this.spine.length - 1) { + if (next < this.spine.length ) { return this.displayChapter(next); } else { this.trigger("book:atEnd"); @@ -7401,4 +7401,4 @@ EPUBJS.Unarchiver.prototype.saveEntryFileToStorage = function(entry, callback){ }); }; -//# sourceMappingURL=epub.js.map \ No newline at end of file +//# sourceMappingURL=epub.js.map diff --git a/server.js b/server.js old mode 100644 new mode 100755 index 011617f..3215e94 --- a/server.js +++ b/server.js @@ -1,3 +1,4 @@ +#!/usr/bin/env node var connect = require('connect'), colors = require('colors'), argv = require('optimist').argv,