don't interrupt boot because of localStorage failure
This commit is contained in:
parent
3337e2133a
commit
7ad89bd9af
@ -35,9 +35,9 @@ define([], function () {
|
||||
var testval = Math.random().toString();
|
||||
localStorage.setItem(test_key, testval);
|
||||
if (localStorage.getItem(test_key) !== test_key) {
|
||||
return failStore();
|
||||
failStore();
|
||||
}
|
||||
} catch (e) { console.error(e); return failStore(); }
|
||||
} catch (e) { console.error(e); failStore(); }
|
||||
|
||||
require([document.querySelector('script[data-bootload]').getAttribute('data-bootload')]);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user