mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 12:08:01 +00:00
Fix: Adds favicon badge for notification alert. (#2079)
* Adds favicon badge for notification alert.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { MESSAGE_TYPE } from 'shared/constants/messages';
|
||||
const notificationAudio = require('shared/assets/audio/ding.mp3');
|
||||
import axios from 'axios';
|
||||
import { showBadgeOnFavicon } from './faviconHelper';
|
||||
|
||||
export const playNotificationAudio = () => {
|
||||
try {
|
||||
@@ -74,5 +75,6 @@ export const newMessageNotification = data => {
|
||||
|
||||
if (enableAudioAlerts && playAudio) {
|
||||
window.playAudioAlert();
|
||||
showBadgeOnFavicon();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user