Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 271ad19

Browse files
committed
return if MathJax not loaded
1 parent cddb746 commit 271ad19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runestone/common/js/runestonebase.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ export default class RunestoneBase {
443443
}
444444

445445
queueMathJax(component) {
446+
if (typeof(MathJax) === "undefined") {
447+
return Promise.resolve(null);
448+
}
446449
if (MathJax.version.substring(0, 1) === "2") {
447450
MathJax.Hub.Queue(["Typeset", MathJax.Hub, component]);
448451
} else {

0 commit comments

Comments
 (0)