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

getCachedFileURL does not call error callback when image cache is not loaded #251

Open jgresty opened 4 years ago

jgresty commented 4 years ago

When Private.isImgCacheLoaded returns false in ImgCache.getCachedFile then the function exists immediately, this is surprising behaviour when using functions such as ImgCache.getCachedFileURL as I would expect any error to trigger an error callback if one is provided.