This commit is contained in:
Luke Page
2014-11-28 19:47:10 +00:00
2 changed files with 4 additions and 2 deletions

View File

@@ -5,7 +5,6 @@ node_js:
install:
- npm install -g grunt-cli
- npm install
env:
env:
global:
- secure: TrNVruWYaUK5ALga1y7wRY+MLjWJECUSCsBmKW5EUmIevOUxqHWu7M89FANKxstEeFRRAGH3QJbloRxnzIgh0U0ah5npE9XA1bYXGO5khoXeIyk7pNRfjIo8aEnJH1Vp8vWA6J6ovxdJ7lCFKEGvGKxGde50knVl7KFVVULlX2U=

View File

@@ -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(_) {}
}
}
}