From 29dde4776c05207aaf0cf89bcf7b176a503b04bc Mon Sep 17 00:00:00 2001 From: Liang Tang <1074461480@qq.com> Date: Sat, 12 May 2018 08:08:15 +0800 Subject: [PATCH] fixes #588 (#629) --- client/modules/IDE/components/Editor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/modules/IDE/components/Editor.jsx b/client/modules/IDE/components/Editor.jsx index 560a137d..c08a9291 100644 --- a/client/modules/IDE/components/Editor.jsx +++ b/client/modules/IDE/components/Editor.jsx @@ -184,7 +184,7 @@ class Editor extends React.Component { for (let i = 0; i < this._cm.lineCount(); i += 1) { this._cm.removeLineClass(i, 'background', 'line-runtime-error'); } - if (this.props.runtimeErrorWarningVisible) { + if (this.props.runtimeErrorWarningVisible && this._cm.getDoc().modeOption === 'javascript') { this.props.consoleEvents.forEach((consoleEvent) => { if (consoleEvent.method === 'error') { if (consoleEvent.arguments.indexOf(')') > -1) {