Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d2b7f75

Browse files
authored
1 parent 6cd71ac commit d2b7f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class PreviewFrame extends React.Component {
168168
// or loops.
169169
JSHINT(newContent);
170170

171-
if (!JSHINT.errors) {
171+
if (JSHINT.errors.length === 0) {
172172
newContent = decomment(newContent, {
173173
ignore: /noprotect/g,
174174
space: true

0 commit comments

Comments
 (0)