You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Grab all of the images and display them inside the container
58
+
*/
59
+
60
+
varcacheKeys=[];// Store the keys we need to drop here
52
61
varcacheImagesShowAll=function(container){
53
-
54
-
}
62
+
varcacheKeys=[];// Store the keys we need to drop here
63
+
// Lets get our loop on
64
+
for(i=0;i<window.localStorage.length;i++){
65
+
if(window.localStorage.key(i).substr(0,window.cacheImagesConfig.storagePrefix.length+1)!==window.cacheImagesConfig.storagePrefix+':'){continue;}// Does not match our prefix?
66
+
67
+
cacheKeys.push(window.localStorage.key(i));// Droping the keys here re-indexes the localStorage so that the offset in our loop is wrong
68
+
}
69
+
70
+
if(cacheKeys.length===0){
71
+
if(window.cacheImagesConfig.debug){console.log('No Images to Drop');}
0 commit comments