mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
updated grunt file to compress zip in correct order
This commit is contained in:
parent
f1eb2d8707
commit
ec377d9132
22 changed files with 2347 additions and 100 deletions
|
@ -5,6 +5,7 @@ EPUBJS.Book = function(bookPath, options){
|
|||
this.settings = _.defaults(options || {}, {
|
||||
element : false,
|
||||
storage: false, //-- true (auto) or false (none) | override: 'ram', 'websqldatabase', 'indexeddb', 'filesystem'
|
||||
fromStorage : false,
|
||||
saved : false,
|
||||
online : true,
|
||||
contained : false,
|
||||
|
@ -12,7 +13,7 @@ EPUBJS.Book = function(bookPath, options){
|
|||
height: false,
|
||||
spreads: true,
|
||||
responsive: true,
|
||||
version: 1,
|
||||
version: 1.1,
|
||||
restore: true
|
||||
});
|
||||
|
||||
|
@ -385,9 +386,8 @@ EPUBJS.Book.prototype.restore = function(){
|
|||
reject = false,
|
||||
fromStore = localStorage.getItem(contentsKey);
|
||||
|
||||
if(fromStore != 'undefined'){
|
||||
if(fromStore != 'undefined' && fromStore != 'null'){
|
||||
this.contents = JSON.parse(fromStore);
|
||||
|
||||
fetch.forEach(function(item){
|
||||
book[item] = book.contents[item];
|
||||
if(!book[item]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue