From 3fb63f75a29afe5b40436049b4e84271fe77c7de Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 7 Nov 2010 13:04:45 +0300 Subject: [PATCH] cache_expire: remove localStorage items from start --- viewfeed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewfeed.js b/viewfeed.js index 95ba610e..2ba2f637 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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) { -- 2.39.5