mirror of https://github.com/vector-im/riot-web
parent
072cbe98b5
commit
25f30ca79f
|
@ -111,9 +111,9 @@ export default class TextualBody extends React.Component {
|
|||
* need to block the DOM update on it. */
|
||||
setTimeout(() => {
|
||||
if (this._unmounted) return;
|
||||
for (let i = 0; i < pres.length; i++) {
|
||||
this._highlightCode(codes[i]);
|
||||
}
|
||||
for (let i = 0; i < pres.length; i++) {
|
||||
this._highlightCode(codes[i]);
|
||||
}
|
||||
}, 10);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue