cache_expire: remove localStorage items from start

This commit is contained in:
Andrew Dolgov 2010-11-07 13:04:45 +03:00
parent 126cd3c885
commit 3fb63f75a2
1 changed files with 1 additions and 1 deletions

View File

@ -1870,7 +1870,7 @@ function cache_expire() {
} else {
if (has_local_storage()) {
while (localStorage.length > 25) {
localStorage.removeItem(localStorage.key(localStorage.length-1));
localStorage.removeItem(localStorage.key(0));
}
} else {
while (article_cache.length > 25) {