Skip to content

Commit 4b42301

Browse files
authored
Merge pull request #1280 from mathjax/fix/liteDOM
Fix problem with MathJax reference in liteDOM
2 parents 131b5cf + 15aa49a commit 4b42301

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ts/adaptors/lite/Element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export class LiteIFrame extends LiteElement {
172172
this.options.debug,
173173
];
174174
const pool = `${this.options.path}/speech-workerpool.js`;
175-
if (MathJax?.loader) {
175+
if (typeof MathJax !== 'undefined' && MathJax.loader) {
176176
MathJax.loader.versions.set(pool, mathjax.version);
177177
}
178178
const { WorkerPool, setContext } = await asyncLoad(pool);

0 commit comments

Comments
 (0)