summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-21 18:12:50 +0300
committerAndrew Dolgov <[email protected]>2010-11-21 18:12:50 +0300
commitdbf8845e3b2bbe9a92995f21d0d15fa01a5561d7 (patch)
tree6a925cdd0038ba1df0485f0899f0d826d9526803 /functions.js
parente12184804870f08a61f671a6d6afba32ffe93fca (diff)
re-enable local storage (use sessionStorage for cache)
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js7
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) {