mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
e959529828
[web] Explicitly name angular parameters GitOrigin-RevId: 91beae68989d6c8122132b531a4338b116d87424
15 lines
312 B
JavaScript
15 lines
312 B
JavaScript
/* global MathJax */
|
|
|
|
import App from '../base'
|
|
|
|
export default App.directive('mathjax', function () {
|
|
return {
|
|
link(scope, element, attrs) {
|
|
if (!(MathJax && MathJax.Hub)) return
|
|
|
|
setTimeout(() => {
|
|
MathJax.Hub.Queue(['Typeset', MathJax.Hub, element.get(0)])
|
|
}, 0)
|
|
},
|
|
}
|
|
})
|