Skip to content

Commit

Permalink
Don't set enableSpeech/Braille (menu does that for us)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Mar 8, 2024
1 parent 73f3f2f commit 5439370
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/v4-lab.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,6 @@ const Lab = window.Lab = {
*/
setEnrich(checked) {
this.menu.enrich = checked;
this.setGeneration(checked);
if (!checked) {
this.setVariable('speech', false, true);
this.setVariable('braille', false, true);
Expand Down Expand Up @@ -847,18 +846,6 @@ const Lab = window.Lab = {
this.setVariable('collapsible', checked);
},

/**
* @param {boolean} checked True if enrichment is checked, false otherwise
*/
setGeneration(checked) {
this.doc.options.enableSpeech = this.doc.options.enableBraille = checked;
if (!checked) {
for (const id of ['speech', 'braille']) {
this.setVariable(id, false);
}
}
},

/**
* Sets the value for one of the MAthML inclusion options
*
Expand Down

0 comments on commit 5439370

Please sign in to comment.