Fix CodeMirror.runMode is not a function
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
This commit is contained in:
parent
d6784aa294
commit
a708fbce75
@ -538,7 +538,7 @@ var ConsoleInput = {
|
||||
if (ConsoleInput.inputs !== null) {
|
||||
return;
|
||||
}
|
||||
if (typeof CodeMirror !== 'undefined') {
|
||||
if (typeof CodeMirror !== 'undefined' && typeof CodeMirror.runMode === 'function') {
|
||||
ConsoleInput.codeMirror = true;
|
||||
}
|
||||
ConsoleInput.inputs = [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user