summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-07 12:54:43 +0300
committerAndrew Dolgov <[email protected]>2010-11-07 12:54:43 +0300
commitff0010c182c1643cc5e0c516e95ed50e18004068 (patch)
treeeb87cb47d41627c7b1d0671dfc2ef272cc74be40 /tt-rss.js
parent50eefedbfd2f31be4054746bbcec7d8e05c0a2dd (diff)
implement html5 localStorage support for client-side cache
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 51c1d3c5f..6dd53c8b5 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -421,6 +421,9 @@ function init_second_stage() {
enable_offline_reading();
+ if (has_local_storage())
+ localStorage.clear();
+
} catch (e) {
exception_error("init_second_stage", e);
}