fix 'undefined/' userHash

pull/1/head
ansuz 2017-05-31 18:01:12 +02:00
parent 401e908963
commit 105e5cdac9
1 changed files with 1 additions and 1 deletions

View File

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