Merge pull request #320 from bakulf/localStorage

If localStorage is disabled, we skip the onboarding - #302
This commit is contained in:
luke crouch 2017-03-06 14:26:49 -06:00 committed by GitHub
commit b9c03aacef

View file

@ -32,7 +32,8 @@ const Logic = {
// Routing to the correct panel. // Routing to the correct panel.
.then(() => { .then(() => {
if (localStorage.getItem("onboarded3")) { // If localStorage is disabled, we don't show the onboarding.
if (!localStorage || localStorage.getItem("onboarded3")) {
this.showPanel(P_CONTAINERS_LIST); this.showPanel(P_CONTAINERS_LIST);
} else if (localStorage.getItem("onboarded2")) { } else if (localStorage.getItem("onboarded2")) {
this.showPanel(P_ONBOARDING_3); this.showPanel(P_ONBOARDING_3);