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:
parent
868b057e02
commit
65fbc6d034
33 changed files with 110 additions and 1804 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue