This commit is contained in:
Cassie Tarakajian 2018-02-01 17:16:54 -05:00 committed by GitHub
parent 6cd71acb81
commit d2b7f75cfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,7 +168,7 @@ class PreviewFrame extends React.Component {
// or loops. // or loops.
JSHINT(newContent); JSHINT(newContent);
if (!JSHINT.errors) { if (JSHINT.errors.length === 0) {
newContent = decomment(newContent, { newContent = decomment(newContent, {
ignore: /noprotect/g, ignore: /noprotect/g,
space: true space: true