diff options
author | Andrew Dolgov <[email protected]> | 2010-11-21 18:12:50 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-21 18:12:50 +0300 |
commit | dbf8845e3b2bbe9a92995f21d0d15fa01a5561d7 (patch) | |
tree | 6a925cdd0038ba1df0485f0899f0d826d9526803 /functions.js | |
parent | e12184804870f08a61f671a6d6afba32ffe93fca (diff) |
re-enable local storage (use sessionStorage for cache)
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/functions.js b/functions.js index 8e02b7932..11f1f4e0a 100644 --- a/functions.js +++ b/functions.js @@ -1200,12 +1200,11 @@ function backend_sanity_check_callback(transport) { } function has_local_storage() { - return false; -/* try { - return 'localStorage' in window && window['localStorage'] != null; + try { + return 'sessionStorage' in window && window['sessionStorage'] != null; } catch (e) { return false; - } */ + } } function catSelectOnChange(elem) { |