cosmetic changes
This commit is contained in:
parent
8abbbd4791
commit
541d739fb7
1 changed files with 2 additions and 2 deletions
|
@ -120,8 +120,8 @@ Ox.localStorage = function(namespace) {
|
|||
// In Safari (OS X or iOS) is in private browsing mode,
|
||||
// it appears as though localStorage is available,
|
||||
// but trying to call .setItem throws an exception.
|
||||
localStorage.setItem("OxJS.writeTest", "");
|
||||
localStorage.removeItem("OxJS.writeTest");
|
||||
localStorage.setItem('OxJS.test', '');
|
||||
localStorage.removeItem('OxJS.test');
|
||||
} catch (e) {
|
||||
console.log('localStorage disabled');
|
||||
localStorage = {};
|
||||
|
|
Loading…
Reference in a new issue