fix(flient): Moved the Mathjax config in SidePanel.js from constructor to componentDidMount.
This commit is contained in:
@ -44,6 +44,9 @@ export class SidePanel extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.bindTopDiv = this.bindTopDiv.bind(this);
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
MathJax.Hub.Config({
|
||||
tex2jax: {
|
||||
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
||||
@ -51,9 +54,6 @@ export class SidePanel extends Component {
|
||||
processClass: 'rosetta-code'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
MathJax.Hub.Queue([
|
||||
'Typeset',
|
||||
MathJax.Hub,
|
||||
|
Reference in New Issue
Block a user