chrisben / imgcache.js

JS library based on the File API to cache images for offline recovery (target: cordova/phonegap & chrome)
Other
826 stars 216 forks source link

added new function: returnCachedURL() #124

Closed gvhuyssteen closed 8 years ago

gvhuyssteen commented 9 years ago

returns the cached url of a specific source url

JcDenton86 commented 9 years ago

A really useful addition!

glalloue commented 8 years ago

is that this method does not already done the work?

ImgCache.getCachedFileURL(imageUrl, function(sourceUrl, cachedUrl) {
      logger.info('Source image url :', sourceUrl, '-> Cached url :', cachedUrl);
});
chrisben commented 8 years ago

'private' methods like getCachedFileFullPath can now be accessed via ImgCache.private so this extra method is perhaps not so useful now. Thanks for the PR though @gvhuyssteen .