Feature: Alert widget user when message is received from agent (#571)
This commit is contained in:
parent
b05f843790
commit
e8cf59c661
5 changed files with 27 additions and 0 deletions
9
app/javascript/shared/helpers/AudioNotificationHelper.js
Normal file
9
app/javascript/shared/helpers/AudioNotificationHelper.js
Normal 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);
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue