diff --git a/client/modules/IDE/components/PreviewFrame.jsx b/client/modules/IDE/components/PreviewFrame.jsx index 2283aa70..bf3313b4 100644 --- a/client/modules/IDE/components/PreviewFrame.jsx +++ b/client/modules/IDE/components/PreviewFrame.jsx @@ -168,7 +168,7 @@ class PreviewFrame extends React.Component { // or loops. JSHINT(newContent); - if (!JSHINT.errors) { + if (JSHINT.errors.length === 0) { newContent = decomment(newContent, { ignore: /noprotect/g, space: true