mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
address review comments
This commit is contained in:
parent
23096581b2
commit
86c5ce5910
@ -427,14 +427,14 @@ define(function(require, exports, module) {
|
||||
|
||||
if (typeof json == "object")
|
||||
return JSON.parse(JSON.stringify(json));
|
||||
|
||||
|
||||
if (typeof json == "string")
|
||||
return json;
|
||||
|
||||
try {
|
||||
var obj = json && JSON.parse(json);
|
||||
return obj;
|
||||
}
|
||||
catch (e) {
|
||||
return false;
|
||||
return JSON.parse(json);
|
||||
}
|
||||
catch (e) {}
|
||||
}
|
||||
|
||||
function getBool(query) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user