Feature: Alert widget user when message is received from agent (#571)

This commit is contained in:
Pranav Raj S 2020-02-29 11:27:02 +05:30 committed by GitHub
parent b05f843790
commit e8cf59c661
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,9 @@
const notificationAudio = require('shared/assets/audio/ding.mp3');
export const playNotificationAudio = () => {
try {
new Audio(notificationAudio).play();
} catch (error) {
console.log(error);
}
};