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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user