diff --git a/source/Ox/js/Core.js b/source/Ox/js/Core.js index 1fefc39e..284ecc5b 100644 --- a/source/Ox/js/Core.js +++ b/source/Ox/js/Core.js @@ -91,9 +91,11 @@ Ox.localStorage localStorage wrapper {} @*/ Ox.localStorage = function(namespace) { - var localStorage = window.localStorage || {}; - // FF 3.6 can't assign to or iterate over localStorage + var localStorage; try { + // this will fail if third party cookies/storage is not allowed + localStorage = window.localStorage || {}; + // FF 3.6 can't assign to or iterate over localStorage Ox.forEach(localStorage, function(value, key) {}); } catch (e) { localStorage = {};