don't interrupt boot because of localStorage failure

pull/1/head
ansuz 8 years ago
parent 3337e2133a
commit 7ad89bd9af

@ -35,9 +35,9 @@ define([], function () {
var testval = Math.random().toString(); var testval = Math.random().toString();
localStorage.setItem(test_key, testval); localStorage.setItem(test_key, testval);
if (localStorage.getItem(test_key) !== test_key) { 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')]); require([document.querySelector('script[data-bootload]').getAttribute('data-bootload')]);
}); });

Loading…
Cancel
Save