From 1b574da053c524b52bdc4437da4e8927a185db49 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 13 Jun 2017 12:24:32 +0200 Subject: [PATCH] fix typo --- www/common/boot2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/boot2.js b/www/common/boot2.js index 84b42a32a..40f9639e8 100644 --- a/www/common/boot2.js +++ b/www/common/boot2.js @@ -21,6 +21,7 @@ define([], function () { } var failStore = function () { + console.error(new Error('wut')); require(['jquery'], function ($) { $.ajax({ type: 'HEAD', @@ -34,7 +35,7 @@ define([], function () { var test_key = 'localStorage_test'; var testval = Math.random().toString(); localStorage.setItem(test_key, testval); - if (localStorage.getItem(test_key) !== test_key) { + if (localStorage.getItem(test_key) !== testval) { failStore(); } } catch (e) { console.error(e); failStore(); }