diff --git a/lib/less-browser/utils.js b/lib/less-browser/utils.js index e7439535..7a645b1b 100644 --- a/lib/less-browser/utils.js +++ b/lib/less-browser/utils.js @@ -13,7 +13,10 @@ module.exports = { if (opt === "env" || opt === "dumpLineNumbers" || opt === "rootpath" || opt === "errorReporting") { options[opt] = tag.dataset[opt]; } else { - options[opt] = JSON.parse(tag.dataset[opt]); + try { + options[opt] = JSON.parse(tag.dataset[opt]); + } + catch(_) {} } } }