Added comment back

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-02-10 13:41:24 +01:00
parent b97d8979c7
commit 5cf126dea3
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 0 deletions

View File

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