fix(mathjax): prevent load in offline mode
This commit is contained in:
committed by
mrugesh
parent
1df7740a7f
commit
3079d675e0
@ -38,6 +38,7 @@ const propTypes = {
|
||||
|
||||
export class SidePanel extends Component {
|
||||
componentDidMount() {
|
||||
if (MathJax) {
|
||||
MathJax.Hub.Config({
|
||||
tex2jax: {
|
||||
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
||||
@ -51,6 +52,7 @@ export class SidePanel extends Component {
|
||||
document.querySelector('.rosetta-code')
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
const {
|
||||
|
Reference in New Issue
Block a user