mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed browsing settings deserialization
This commit is contained in:
@ -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) {
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user