We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 131b5cf + 15aa49a commit 4b42301Copy full SHA for 4b42301
1 file changed
ts/adaptors/lite/Element.ts
@@ -172,7 +172,7 @@ export class LiteIFrame extends LiteElement {
172
this.options.debug,
173
];
174
const pool = `${this.options.path}/speech-workerpool.js`;
175
- if (MathJax?.loader) {
+ if (typeof MathJax !== 'undefined' && MathJax.loader) {
176
MathJax.loader.versions.set(pool, mathjax.version);
177
}
178
const { WorkerPool, setContext } = await asyncLoad(pool);
0 commit comments