fix(mathjax): prevent load in offline mode

This commit is contained in:
Mrugesh Mohapatra
2019-06-22 19:03:57 +05:30
committed by mrugesh
parent 1df7740a7f
commit 3079d675e0

View File

@ -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 {