mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-03 21:01:07 +02:00
Improve comment
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
This commit is contained in:
parent
ce1be7a4cd
commit
61cd026d7a
@ -99,7 +99,7 @@ export default class TextualBody extends React.Component {
|
|||||||
// If there already is a div wrapping the codeblock we want to skip this.
|
// If there already is a div wrapping the codeblock we want to skip this.
|
||||||
// This happens after the codeblock was edited.
|
// This happens after the codeblock was edited.
|
||||||
if (pres[i].parentNode.className == "mx_EventTile_pre_container") continue;
|
if (pres[i].parentNode.className == "mx_EventTile_pre_container") continue;
|
||||||
// Add code element if it's missing
|
// Add code element if it's missing since we depend on it
|
||||||
if (pres[i].getElementsByTagName("code").length == 0) {
|
if (pres[i].getElementsByTagName("code").length == 0) {
|
||||||
this._addCodeElement(pres[i]);
|
this._addCodeElement(pres[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user