1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Added online toggle

This commit is contained in:
Fred Chasen 2013-01-23 11:28:09 -08:00
parent 868b057e02
commit 65fbc6d034
33 changed files with 110 additions and 1804 deletions

View file

@ -49,16 +49,20 @@ FP.storage.filesystem = function() {
var url;
//-- should only be checking urls? but blank on reload?
if(fromCache){
//console.log("c")
url = getURL(path, fromCache);
if(typeof(callback) != "undefined"){
callback(url);
}
}else{
_queue.add(path, function(file){
url = getURL(path, file);
if(typeof(callback) != "undefined"){
callback(url);
}
_queue.add(path, function(url){
console.log("url", url)
check(url, function(file){
url = getURL(path, file);
if(typeof(callback) != "undefined"){
callback(url);
}
});
}, true);
}