diff --git a/plugins/c9.core/settings.js b/plugins/c9.core/settings.js index 117d170a..e996648a 100644 --- a/plugins/c9.core/settings.js +++ b/plugins/c9.core/settings.js @@ -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) {