return falsey if userHash is junk
This commit is contained in:
1 parent
105e5cdac9
commit
936bf8df9d
1 file changed
+2
-2
@@ -246,10 +246,10 @@ define([
|
|||||||
var getUserHash = common.getUserHash = function () {
|
var getUserHash = common.getUserHash = function () {
|
||||||
var hash = localStorage[userHashKey];
|
var hash = localStorage[userHashKey];
|
||||||
|
|
||||||
if (hash && ['undefined', 'undefined/'].indexOf(hash) !== -1) {
|
if (hash && ['undefined', 'undefined/'].indexOf(hash) === -1) {
|
||||||
var sHash = common.serializeHash(hash);
|
var sHash = common.serializeHash(hash);
|
||||||
if (sHash !== hash) { localStorage[userHashKey] = sHash; }
|
if (sHash !== hash) { localStorage[userHashKey] = sHash; }
|
||||||
}
|
} else { return; }
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user