From 08fe35510108c8044727ec62d9fc92a6ed185b3c Mon Sep 17 00:00:00 2001 From: baku Date: Fri, 3 Mar 2017 08:48:11 +0100 Subject: [PATCH] If localStorage is disabled, we skip the onboarding - #302 --- webextension/js/popup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webextension/js/popup.js b/webextension/js/popup.js index c75985c..b58138a 100644 --- a/webextension/js/popup.js +++ b/webextension/js/popup.js @@ -32,7 +32,8 @@ const Logic = { // Routing to the correct panel. .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); } else if (localStorage.getItem("onboarded2")) { this.showPanel(P_ONBOARDING_3);