mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
null check mathjax
This commit is contained in:
parent
9a7f73ed89
commit
3a9c6503ee
1 changed files with 2 additions and 2 deletions
|
@ -15,12 +15,12 @@ define [
|
||||||
processEscapes: true
|
processEscapes: true
|
||||||
skipStartupTypeset: true
|
skipStartupTypeset: true
|
||||||
|
|
||||||
MathJax.Hub.Config(mathjaxConfig);
|
MathJax?.Hub?.Config(mathjaxConfig);
|
||||||
|
|
||||||
App.directive "mathjax", () ->
|
App.directive "mathjax", () ->
|
||||||
return {
|
return {
|
||||||
link: (scope, element, attrs) ->
|
link: (scope, element, attrs) ->
|
||||||
setTimeout () ->
|
setTimeout () ->
|
||||||
MathJax.Hub.Queue(["Typeset", MathJax.Hub, element.get(0)])
|
MathJax?.Hub?.Queue(["Typeset", MathJax?.Hub, element.get(0)])
|
||||||
, 0
|
, 0
|
||||||
}
|
}
|
Loading…
Reference in a new issue