Merge pull request #3733 from overleaf/tm-mathjax-query-param

Add query parameter to MathJax script path

GitOrigin-RevId: c4f17505a23f8de4f5f5c7e62f74db930a029c22
This commit is contained in:
Thomas 2021-03-08 15:52:45 +01:00 committed by Copybot
parent 6eaf4abe46
commit 695561aa01

View file

@ -127,7 +127,8 @@ module.exports = function(webRouter, privateApiRouter, publicApiRouter) {
res.locals.mathJaxPath = `/js/libs/mathjax/MathJax.js?${querystring.stringify(
{
config: 'TeX-AMS_HTML,Safe'
config: 'TeX-AMS_HTML,Safe',
v: require('mathjax/package.json').version
}
)}`