Skip to content

Commit 76a6509

Browse files
authored
Merge pull request #1292 from mathjax/fix/clearspeak-menu
Don't try to create the clearspeak menu if enrichment is disabled
2 parents 30bd639 + 3d27197 commit 76a6509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/a11y/speech/SpeechMenu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export async function clearspeakMenu(
243243
)
244244
);
245245
};
246-
if (!menu.settings.speech) {
246+
if (!menu.settings.speech || !menu.settings.enrich) {
247247
exit([]);
248248
return;
249249
}

0 commit comments

Comments
 (0)