Skip to content
Snippets Groups Projects
Commit 7e7344dd authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

use Stud.IP 5 API for MathJax in Courseware, re #118

parent 3e998055
No related branches found
No related tags found
No related merge requests found
...@@ -227,15 +227,7 @@ const CoursewareTestBlock = { ...@@ -227,15 +227,7 @@ const CoursewareTestBlock = {
}); });
}, },
loadMathjax() { loadMathjax() {
let mathjaxP; STUDIP.loadChunk('mathjax').then(({ Hub }) => {
if (MathJax && MathJax.Hub) {
mathjaxP = Promise.resolve(MathJax);
} else if (STUDIP.loadChunk) {
mathjaxP = STUDIP.loadChunk('mathjax');
}
mathjaxP && mathjaxP.then(({ Hub }) => {
Hub.Queue(['Typeset', Hub, this.$refs.content]); Hub.Queue(['Typeset', Hub, this.$refs.content]);
}); });
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment