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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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