Show More
@@ -256,7 +256,11 b' define([' | |||
|
256 | 256 | |
|
257 | 257 | this.events.on('kernel_ready.Kernel', function(event, data) { |
|
258 | 258 | var kinfo = data.kernel.info_reply; |
|
259 |
|
|
|
259 | if (!kinfo.language_info) { | |
|
260 | delete that.metadata.language_info; | |
|
261 | return; | |
|
262 | } | |
|
263 | var langinfo = kinfo.language_info; | |
|
260 | 264 | that.metadata.language_info = langinfo; |
|
261 | 265 | // Mode 'null' should be plain, unhighlighted text. |
|
262 | 266 | var cm_mode = langinfo.codemirror_mode || langinfo.name || 'null'; |
General Comments 0
You need to be logged in to leave comments.
Login now