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

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