1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

implement html5 localStorage support for client-side cache

This commit is contained in:
Andrew Dolgov
2010-11-07 12:54:43 +03:00
parent 50eefedbfd
commit ff0010c182
3 changed files with 93 additions and 24 deletions
+7
View 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;
}
}