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 {
|
export class SidePanel extends Component {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
if (MathJax) {
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
tex2jax: {
|
tex2jax: {
|
||||||
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
||||||
@ -51,6 +52,7 @@ export class SidePanel extends Component {
|
|||||||
document.querySelector('.rosetta-code')
|
document.querySelector('.rosetta-code')
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {
|
const {
|
||||||
|
Reference in New Issue
Block a user