]> git.wh0rd.org - tt-rss.git/blobdiff - functions.js
implement html5 localStorage support for client-side cache
[tt-rss.git] / functions.js
index 2aa0dab4fded804dd5f6c06a110f1474e31fe9da..8b4945edcef63fe2df9c1c354c2612d18fdcfa5a 100644 (file)
@@ -2184,3 +2184,10 @@ function backend_sanity_check_callback(transport) {
        } 
 }
 
+function has_local_storage() {
+       try {
+               return 'localStorage' in window && window['localStorage'] != null;
+       } catch (e) {
+               return false;
+       }
+}