fix 'undefined/' userHash
This commit is contained in:
parent
401e908963
commit
105e5cdac9
@ -246,7 +246,7 @@ define([
|
|||||||
var getUserHash = common.getUserHash = function () {
|
var getUserHash = common.getUserHash = function () {
|
||||||
var hash = localStorage[userHashKey];
|
var hash = localStorage[userHashKey];
|
||||||
|
|
||||||
if (hash) {
|
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; }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user