diff --git a/.travis.yml b/.travis.yml index 8092449f..71d667a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,6 @@ node_js: install: - npm install -g grunt-cli - npm install -env: env: global: - secure: TrNVruWYaUK5ALga1y7wRY+MLjWJECUSCsBmKW5EUmIevOUxqHWu7M89FANKxstEeFRRAGH3QJbloRxnzIgh0U0ah5npE9XA1bYXGO5khoXeIyk7pNRfjIo8aEnJH1Vp8vWA6J6ovxdJ7lCFKEGvGKxGde50knVl7KFVVULlX2U= 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(_) {} } } }