diff --git a/js/functions.js b/js/functions.js index 007af4ade3..77bba26d53 100644 --- a/js/functions.js +++ b/js/functions.js @@ -3790,7 +3790,7 @@ AJAX.registerOnload('functions.js', function () { cache: false, type: 'POST', data: { - favorite_tables: (isStorageSupported('localStorage')) + favorite_tables: (isStorageSupported('localStorage') && typeof window.localStorage['favorite_tables'] != 'undefined') ? window.localStorage['favorite_tables'] : '' }, diff --git a/js/navigation.js b/js/navigation.js index 9796d1f64c..f20d591391 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -487,7 +487,7 @@ $(function () { cache: false, type: 'POST', data: { - favorite_tables: (isStorageSupported('localStorage')) + favorite_tables: (isStorageSupported('localStorage') && typeof window.localStorage.favorite_tables != 'undefined') ? window.localStorage.favorite_tables : '' },