Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/less/less.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeapage committed Nov 28, 2014
2 parents 8fc12e1 + aefd0bc commit 94a6501
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ node_js:
install:
- npm install -g grunt-cli
- npm install
env:
env:
global:
- secure: TrNVruWYaUK5ALga1y7wRY+MLjWJECUSCsBmKW5EUmIevOUxqHWu7M89FANKxstEeFRRAGH3QJbloRxnzIgh0U0ah5npE9XA1bYXGO5khoXeIyk7pNRfjIo8aEnJH1Vp8vWA6J6ovxdJ7lCFKEGvGKxGde50knVl7KFVVULlX2U=
Expand Down
5 changes: 4 additions & 1 deletion lib/less-browser/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(_) {}
}
}
}
Expand Down

0 comments on commit 94a6501

Please sign in to comment.