mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Express local for MathJax path
This commit is contained in:
parent
9f5e976539
commit
90986c1ade
1 changed files with 5 additions and 0 deletions
|
@ -167,6 +167,11 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
|
|||
path = Path.join("/img/", imgFile)
|
||||
return Url.resolve(staticFilesBase, path)
|
||||
|
||||
res.locals.mathJaxPath = res.locals.buildJsPath(
|
||||
'libs/mathjax/MathJax.js',
|
||||
{cdn:false, qs:{config:'TeX-AMS_HTML'}}
|
||||
)
|
||||
|
||||
next()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue