|
|
@ -242,6 +242,11 @@ define([
|
|
|
|
var getUserHash = common.getUserHash = function () {
|
|
|
|
var getUserHash = common.getUserHash = function () {
|
|
|
|
var hash = localStorage[userHashKey];
|
|
|
|
var hash = localStorage[userHashKey];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (['undefined', 'undefined/'].indexOf(hash) !== -1) {
|
|
|
|
|
|
|
|
localStorage.removeItem(userHashKey);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (hash) {
|
|
|
|
if (hash) {
|
|
|
|
var sHash = common.serializeHash(hash);
|
|
|
|
var sHash = common.serializeHash(hash);
|
|
|
|
if (sHash !== hash) { localStorage[userHashKey] = sHash; }
|
|
|
|
if (sHash !== hash) { localStorage[userHashKey] = sHash; }
|
|
|
|