Show More
@@ -323,7 +323,12 b' var IPython = (function (IPython) {' | |||||
323 | } |
|
323 | } | |
324 | } |
|
324 | } | |
325 | // fallback on default |
|
325 | // fallback on default | |
326 | var default_mode = this._options.cm_config.mode || 'text/plain'; |
|
326 | var default_mode | |
|
327 | try { | |||
|
328 | default_mode = this._options.cm_config.mode; | |||
|
329 | } catch(e) { | |||
|
330 | default_mode = 'text/plain'; | |||
|
331 | } | |||
327 | this.code_mirror.setOption('mode', default_mode); |
|
332 | this.code_mirror.setOption('mode', default_mode); | |
328 | }; |
|
333 | }; | |
329 |
|
334 |
General Comments 0
You need to be logged in to leave comments.
Login now