1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +00:00

Fix further issue with highlight.js brush handling

This commit is contained in:
Jermolene 2016-08-18 10:32:21 +01:00
parent ee9d19d299
commit f079b31334

View File

@ -24,8 +24,8 @@ CodeBlockWidget.prototype.postRender = function() {
var domNode = this.domNodes[0],
language = this.language,
tiddler = this.wiki.getTiddler(TYPE_MAPPINGS_BASE + language);
if(tiddler && tiddler.fields.text) {
language = tiddler.fields.text;
if(tiddler) {
language = tiddler.fields.text || "";
}
if($tw.browser && this.document !== $tw.fakeDocument && language) {
domNode.className = language.toLowerCase();