JamesBrill / react-speech-recognition

💬Speech recognition for your React app
https://webspeechrecognition.com/
MIT License
674 stars 120 forks source link

ReferenceError: window is not defined #5

Closed samankhademi closed 6 years ago

samankhademi commented 6 years ago

I think that is because there is no "window" in server side rendering i use react Starter Kit

JamesBrill commented 6 years ago

This should now be fixed by #6 (version 1.0.6). On the server, it will fail gracefully; on the client, it should use the browser's SpeechRecognition object if it's available.