mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 04:27:53 +00:00
Feature: Alert widget user when message is received from agent (#571)
This commit is contained in:
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);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user