From 7ad89bd9af1e4a54fda5b570d45bef79ff1c97bd Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 13 Jun 2017 12:02:36 +0200 Subject: [PATCH] don't interrupt boot because of localStorage failure --- www/common/boot2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/boot2.js b/www/common/boot2.js index f197b792a..84b42a32a 100644 --- a/www/common/boot2.js +++ b/www/common/boot2.js @@ -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')]); });