summaryrefslogtreecommitdiff
path: root/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-07 13:04:45 +0300
committerAndrew Dolgov <[email protected]>2010-11-07 13:04:52 +0300
commit3fb63f75a29afe5b40436049b4e84271fe77c7de (patch)
treee4b2eb42ca329367552410094ffbe41ef465d693 /viewfeed.js
parent126cd3c8853cb4857dd3f2c98d4f4bcce4061193 (diff)
cache_expire: remove localStorage items from start
Diffstat (limited to 'viewfeed.js')
-rw-r--r--viewfeed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/viewfeed.js b/viewfeed.js
index 95ba610e2..2ba2f637d 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) {