From 19475ccfbb748a05c5bb1fb1b1ddd4c50705b48b Mon Sep 17 00:00:00 2001 From: Renard Date: Fri, 27 Sep 2019 01:15:54 -0300 Subject: AƱadido: sonido de notificaciĆ³n --- src/Home.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Home.js') 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; -- cgit v1.2.1-18-gbd029