mhasbini/react-chrome-dino

How can I turn off the sound of react-chrome-dino?

dooli1971039 opened this issue · 2 comments

When I played the game and navigate to the different screen, I still hear the game sound when I press the space bar. How can I fix it? Is there a mute property?

I found this library because I needed this game, but I encountered the same problem. if there are any solutions, please let me know! thx

The solution I hacked is to edit DinoScript.js and find the following snippet:

playSound:function(t){if(t)

and replace it with

playSound:function(t){if(false)