Fix view source and devtools showing hljs warnings (#7759)

This commit is contained in:
Michael Telatynski
2022-02-09 09:09:06 +00:00
committed by GitHub
parent 094b29bb21
commit 2b72a2cc2f
5 changed files with 51 additions and 46 deletions

View File

@@ -501,7 +501,7 @@ class RoomStateExplorer extends React.PureComponent<IExplorerProps, IRoomStateEx
return <div className="mx_ViewSource">
<div className="mx_Dialog_content">
<SyntaxHighlight className="json">
<SyntaxHighlight language="json">
{ JSON.stringify(this.state.event.event, null, 2) }
</SyntaxHighlight>
</div>
@@ -634,7 +634,7 @@ class AccountDataExplorer extends React.PureComponent<IExplorerProps, IAccountDa
return <div className="mx_ViewSource">
<div className="mx_DevTools_content">
<SyntaxHighlight className="json">
<SyntaxHighlight language="json">
{ JSON.stringify(this.state.event.event, null, 2) }
</SyntaxHighlight>
</div>