Added second comment back

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-02-10 14:02:45 +01:00
parent 5cf126dea3
commit 895be6e7a6
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

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