1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Update src/components/views/messages/TextualBody.js

Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
This commit is contained in:
Šimon Brandner
2021-02-04 17:58:21 +01:00
committed by GitHub
parent 5ca9e8d323
commit 9db86a38f6

View File

@@ -109,7 +109,7 @@ export default class TextualBody extends React.Component {
}
// Highlight code
const codes = ReactDOM.findDOMNode(this).getElementsByTagName("code");
if (codes.length >0) {
if (codes.length > 0) {
for (let i = 0; i < codes.length; i++) {
/* Do this asynchronously: parsing code takes time and we don't
* need to block the DOM update on it. */