mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 22:29:01 +02:00
null check mathjax
This commit is contained in:
@@ -15,12 +15,12 @@ define [
|
||||
processEscapes: true
|
||||
skipStartupTypeset: true
|
||||
|
||||
MathJax.Hub.Config(mathjaxConfig);
|
||||
MathJax?.Hub?.Config(mathjaxConfig);
|
||||
|
||||
App.directive "mathjax", () ->
|
||||
return {
|
||||
link: (scope, element, attrs) ->
|
||||
setTimeout () ->
|
||||
MathJax.Hub.Queue(["Typeset", MathJax.Hub, element.get(0)])
|
||||
MathJax?.Hub?.Queue(["Typeset", MathJax?.Hub, element.get(0)])
|
||||
, 0
|
||||
}
|
||||
Reference in New Issue
Block a user