Skip to content

Commit

Permalink
Revert "clear the pendingUtterance on cancel, see #66"
Browse files Browse the repository at this point in the history
This reverts commit acd7531.
  • Loading branch information
jessegreenberg committed Mar 12, 2022
1 parent 01923e5 commit bc54d40
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions js/SpeechSynthesisAnnouncer.js
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,6 @@ class SpeechSynthesisAnnouncer extends Announcer {
cancelSynth() {
assert && assert( this.initialized, 'must be initialized to use synth' );
this.getSynth().cancel();

// in case we were waiting for the synth to speak something
this.pendingUtterance = null;
}

/**
Expand Down

0 comments on commit bc54d40

Please sign in to comment.