From 90986c1ade70bf061d833c3ecf08b82129a0ce35 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Wed, 27 Jun 2018 17:26:39 -0500 Subject: [PATCH] Express local for MathJax path --- services/web/app/coffee/infrastructure/ExpressLocals.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/web/app/coffee/infrastructure/ExpressLocals.coffee b/services/web/app/coffee/infrastructure/ExpressLocals.coffee index 6943a79cb2..d2e7415067 100644 --- a/services/web/app/coffee/infrastructure/ExpressLocals.coffee +++ b/services/web/app/coffee/infrastructure/ExpressLocals.coffee @@ -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()