mirror of https://github.com/zulip/zulip.git
KaTeX: Fix path to KaTeX bundle in production.
This commit is contained in:
parent
1883bff243
commit
f4a4c23380
|
@ -36,7 +36,7 @@ SOFTWARE.
|
|||
let katex;
|
||||
try {
|
||||
// Attempt to import KaTeX from the production bundle
|
||||
katex = require("../../serve/min/katex.js");
|
||||
katex = require("/home/zulip/prod-static/min/katex.js");
|
||||
} catch (ex) {
|
||||
// Import KaTeX from node_modules (development environment) otherwise
|
||||
katex = require("../../node_modules/katex/katex.js");
|
||||
|
|
Loading…
Reference in New Issue