Fixed browsing settings deserialization
This commit is contained in:
parent
527356bba2
commit
4d7e035383
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue