From a708fbce755b8a3841eb4252bc64b23fd836386a Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Sun, 22 Feb 2026 19:11:07 +0100 Subject: [PATCH] Fix CodeMirror.runMode is not a function Signed-off-by: Liviu-Mihail Concioiu --- js/src/console.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/console.js b/js/src/console.js index 2fc0a17fdd..8049d3d546 100644 --- a/js/src/console.js +++ b/js/src/console.js @@ -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 = [];