Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesBrill committed Apr 15, 2021
1 parent f13a451 commit 3fc6265
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/RecognitionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ export default class RecognitionManager {

emitBrowserSupportsSpeechRecognitionChange(browserSupportsSpeechRecognitionChange) {
Object.keys(this.subscribers).forEach((id) => {
const { onBrowserSupportsSpeechRecognitionChange, onBrowserSupportsContinuousListening } = this.subscribers[id]
const { onBrowserSupportsSpeechRecognitionChange, onBrowserSupportsContinuousListeningChange } = this.subscribers[id]
onBrowserSupportsSpeechRecognitionChange(browserSupportsSpeechRecognitionChange)
onBrowserSupportsContinuousListening(browserSupportsSpeechRecognitionChange)
onBrowserSupportsContinuousListeningChange(browserSupportsSpeechRecognitionChange)
})
}

Expand Down
2 changes: 1 addition & 1 deletion src/SpeechRecognition.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const useSpeechRecognition = ({
onTranscriptChange: handleTranscriptChange,
onClearTranscript: handleClearTranscript,
onBrowserSupportsSpeechRecognitionChange: setBrowserSupportsSpeechRecognition,
onBrowserSupportsContinuousListening: setBrowserSupportsContinuousListening
onBrowserSupportsContinuousListeningChange: setBrowserSupportsContinuousListening
}
recognitionManager.subscribe(id, callbacks)

Expand Down

0 comments on commit 3fc6265

Please sign in to comment.