remove known bad entries from localStorage.userHash...

pull/1/head
ansuz 8 years ago
parent 936bf8df9d
commit 2e03485db4

@ -246,10 +246,15 @@ define([
var getUserHash = common.getUserHash = function () {
var hash = localStorage[userHashKey];
if (hash && ['undefined', 'undefined/'].indexOf(hash) === -1) {
if (['undefined', 'undefined/'].indexOf(hash) === -1) {
localStorage.removeItem(userHashKey);
return;
}
if (hash) {
var sHash = common.serializeHash(hash);
if (sHash !== hash) { localStorage[userHashKey] = sHash; }
} else { return; }
}
return hash;
};

Loading…
Cancel
Save