Fixed browsing settings deserialization

This commit is contained in:
Marcin Kurczewski 2014-10-22 18:37:50 +02:00
parent 527356bba2
commit 4d7e035383

View file

@ -53,7 +53,11 @@ App.BrowsingSettings = function(
}
try {
settings = JSON.parse(string);
if (typeof(string) === 'string' || string instanceof String) {
settings = JSON.parse(string);
} else {
settings = string;
}
} catch (e) {
}
}