diff options
author | Renard | 2019-09-27 01:15:54 -0300 |
---|---|---|
committer | Renard | 2019-09-27 01:15:54 -0300 |
commit | 19475ccfbb748a05c5bb1fb1b1ddd4c50705b48b (patch) | |
tree | 876764a3144985837a79c5ea5e72783db83ea833 /src | |
parent | f69754001ca70ce3aeac764cba7e97e5eb8dca21 (diff) | |
download | bai-client-19475ccfbb748a05c5bb1fb1b1ddd4c50705b48b.tar.gz bai-client-19475ccfbb748a05c5bb1fb1b1ddd4c50705b48b.tar.xz bai-client-19475ccfbb748a05c5bb1fb1b1ddd4c50705b48b.zip |
AƱadido: sonido de notificaciĆ³n
Diffstat (limited to 'src')
-rw-r--r-- | src/Home.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Home.js b/src/Home.js index a96fae6..5685d3b 100644 --- a/src/Home.js +++ b/src/Home.js @@ -19,6 +19,9 @@ class Home extends Component { this.refreshCooldown = 15; this.cooldownCounter = 0; this.lastTimeNoAge = 0; + this.notificationSound = new Audio( + "https://bienvenidoainternet.org/msn.ogg" + ); } componentDidMount() { @@ -82,6 +85,7 @@ class Home extends Component { lastAgeThreads: resource.threads }); this.refreshCooldown = 30; + this.notificationSound.play(); } else { this.refreshCooldown += 15; this.lastTimeNoAge = resource.time; |