HTML5 Client sound - added sound for unreadMessages

This commit is contained in:
JaeeunCho 2016-12-22 08:17:22 -08:00
parent 20eea9cb06
commit 0a4248d144
2 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,11 @@ class NavBar extends Component {
});
}
soundForUnreadeMessages() {
const snd = new Audio('resources/sounds/notify.mp3');
snd.play();
}
render() {
const { hasUnreadMessages, beingRecorded } = this.props;
@ -88,6 +93,7 @@ class NavBar extends Component {
<div className={styles.right}>
<SettingsDropdown />
</div>
{hasUnreadMessages ? this.soundForUnreadeMessages() : null}
</div>
);
}

Binary file not shown.