hotfix 'undefined/' bug

pull/1/head
ansuz 2017-05-31 18:44:44 +02:00
parent 41a8604cb8
commit 30f66ab7ba
1 changed files with 5 additions and 0 deletions

View File

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