chore: Refactor audio notification helper (#6148)

This commit is contained in:
Pranav Raj S
2022-12-29 20:01:14 -08:00
parent 297e144f33
commit 6ffb7fe34e
10 changed files with 131 additions and 273 deletions

View File

@@ -127,7 +127,7 @@ export const IFrameHelper = {
setupAudioListeners: () => {
const { baseUrl = '' } = window.$chatwoot;
getAlertAudio(baseUrl, 'widget').then(() =>
getAlertAudio(baseUrl, { type: 'widget', alertTone: 'ding' }).then(() =>
initOnEvents.forEach(event => {
document.removeEventListener(
event,