Skip to content

Commit 94a6501

Browse files
committed
Merge branch 'master' of https://github.com/less/less.js
2 parents 8fc12e1 + aefd0bc commit 94a6501

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ node_js:
55
install:
66
- npm install -g grunt-cli
77
- npm install
8-
env:
98
env:
109
global:
1110
- secure: TrNVruWYaUK5ALga1y7wRY+MLjWJECUSCsBmKW5EUmIevOUxqHWu7M89FANKxstEeFRRAGH3QJbloRxnzIgh0U0ah5npE9XA1bYXGO5khoXeIyk7pNRfjIo8aEnJH1Vp8vWA6J6ovxdJ7lCFKEGvGKxGde50knVl7KFVVULlX2U=

lib/less-browser/utils.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ module.exports = {
1313
if (opt === "env" || opt === "dumpLineNumbers" || opt === "rootpath" || opt === "errorReporting") {
1414
options[opt] = tag.dataset[opt];
1515
} else {
16-
options[opt] = JSON.parse(tag.dataset[opt]);
16+
try {
17+
options[opt] = JSON.parse(tag.dataset[opt]);
18+
}
19+
catch(_) {}
1720
}
1821
}
1922
}

0 commit comments

Comments
 (0)