1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-07 06:09:17 +00:00

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

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) {