]> git.wh0rd.org - tt-rss.git/blobdiff - tt-rss.js
implement html5 localStorage support for client-side cache
[tt-rss.git] / tt-rss.js
index 51c1d3c5f79e8ecc69fab3b6229b74823b43367a..6dd53c8b556ece49eb177a463172daf79287dd8e 100644 (file)
--- 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);
        }