summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-08-31 15:25:42 +0400
committerAndrew Dolgov <[email protected]>2011-08-31 16:15:01 +0400
commit37c03d3a420853b61348de87150a69a567c00146 (patch)
treede39fcfc127af3a7b7a9492bae9689628471e299 /tt-rss.js
parent165c88ff3166825dcccfa2d30a9c3574e64c8549 (diff)
implement automatic precaching for next normal and unread feeds
allow opening cached next_unread_feed on f-q if available tweak getRelativeArticles() to scan forward only reenable prefetch_old server requests
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/tt-rss.js b/tt-rss.js
index c8f4ab83e..3e0e95919 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -330,7 +330,9 @@ function init_second_stage() {
loading_set_progress(30);
- cache_clear();
+ // can't use cache_clear() here because viewfeed might not have initialized yet
+ if ('sessionStorage' in window && window['sessionStorage'] !== null)
+ sessionStorage.clear();
console.log("second stage ok");