chore:1.0.15
This commit is contained in:
@@ -37,6 +37,9 @@ const parseJSON = (value, def = {}) => {
|
||||
obj = JSON.parse(value);
|
||||
} catch (e) {
|
||||
}
|
||||
if (!obj) {
|
||||
obj = def;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user