]> git.wh0rd.org Git - tt-rss.git/commitdiff
cache_expire: remove localStorage items from start
authorAndrew Dolgov <fox@fakecake.org>
Sun, 7 Nov 2010 10:04:45 +0000 (13:04 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Sun, 7 Nov 2010 10:04:52 +0000 (13:04 +0300)
viewfeed.js

index 95ba610e24b81aec0ee45ab62518393d2486afb5..2ba2f637d3d7c6fa48a89b3989f49872f296ab5c 100644 (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) {