1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

added loading from zipped epub file

This commit is contained in:
Fred Chasen 2013-01-26 21:01:14 -08:00
parent 2ddae3a024
commit 1e592badd1
13 changed files with 288 additions and 57 deletions

View file

@ -24,7 +24,7 @@ FP.Chapter = function(book, pos){
FP.Chapter.prototype.load = function(){
var path = this.path;
if(this.book.online){
if(this.book.online && !this.book.contained){
this.setIframeSrc(path);
}else{
this.loadFromStorage(path);
@ -214,7 +214,7 @@ FP.Chapter.prototype.replaceResources = function(callback){
//-- No need to replace if there is network connectivity
//-- also Filesystem api links are relative, so no need to replace them
if(this.book.online || FP.storage.getStorageType() == "filesystem") {
if((this.book.online && !this.book.contained) || FP.storage.getStorageType() == "filesystem") {
if(callback) callback();
return false;
}