From 7b94106bac52233d7d27cc728f062b09c880ab77 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 31 May 2017 18:15:31 +0200 Subject: [PATCH] fix inverted conditional :/ --- www/common/cryptpad-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index ee9daeb49..039d2c4a0 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -246,7 +246,7 @@ define([ var getUserHash = common.getUserHash = function () { var hash = localStorage[userHashKey]; - if (['undefined', 'undefined/'].indexOf(hash) === -1) { + if (['undefined', 'undefined/'].indexOf(hash) !== -1) { localStorage.removeItem(userHashKey); return; }