Skip to content

Commit

Permalink
bug fix, #97
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jan 4, 2023
1 parent 54b3ec9 commit 4e8745e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/SpeechSynthesisAnnouncer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ class SpeechSynthesisAnnouncer extends Announcer {
// https://stackoverflow.com/questions/23483990/speechsynthesis-api-onend-callback-not-working and
// https://github.com/phetsims/john-travoltage/issues/435 and https://github.com/phetsims/utterance-queue/issues/52
const speechSynthesisUtteranceWrapper = new SpeechSynthesisUtteranceWrapper( utterance, announceText,
speechSynthUtterance, false, endListener, startListener );
speechSynthUtterance, endListener, startListener );

// In Safari the `end` listener does not fire consistently, (especially after cancel)
// but the error event does. In this case signify that speaking has ended.
Expand Down

0 comments on commit 4e8745e

Please sign in to comment.