mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-24 08:02:17 +00: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)
|
path = Path.join("/img/", imgFile)
|
||||||
return Url.resolve(staticFilesBase, path)
|
return Url.resolve(staticFilesBase, path)
|
||||||
|
|
||||||
|
res.locals.mathJaxPath = res.locals.buildJsPath(
|
||||||
|
'libs/mathjax/MathJax.js',
|
||||||
|
{cdn:false, qs:{config:'TeX-AMS_HTML'}}
|
||||||
|
)
|
||||||
|
|
||||||
next()
|
next()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue