chnage local storage test to work in FF 16+, fixes #1116
This commit is contained in:
parent
4329bd5408
commit
23833d2a11
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ Ox.localStorage = function(namespace) {
|
||||||
var localStorage = window.localStorage || {};
|
var localStorage = window.localStorage || {};
|
||||||
// FF 3.6 can't assign to or iterate over localStorage
|
// FF 3.6 can't assign to or iterate over localStorage
|
||||||
try {
|
try {
|
||||||
window.localStorage = localStorage;
|
Ox.forEach(localStorage, function(value, key) {});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
localStorage = {};
|
localStorage = {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue