We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 351698e commit 15aa49aCopy full SHA for 15aa49a
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