mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 12:37:56 +00:00 
			
		
		
		
	feat: update tool-chain to latest (#7975)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
		@@ -10,6 +10,7 @@ export const getAudioContext = () => {
 | 
			
		||||
  return audioCtx;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// eslint-disable-next-line default-param-last
 | 
			
		||||
export const getAlertAudio = async (baseUrl = '', requestContext) => {
 | 
			
		||||
  const audioCtx = getAudioContext();
 | 
			
		||||
  const playSound = audioBuffer => {
 | 
			
		||||
@@ -33,6 +34,7 @@ export const getAlertAudio = async (baseUrl = '', requestContext) => {
 | 
			
		||||
      .then(response => response.arrayBuffer())
 | 
			
		||||
      .then(buffer => {
 | 
			
		||||
        audioCtx.decodeAudioData(buffer).then(playSound);
 | 
			
		||||
        // eslint-disable-next-line no-promise-executor-return
 | 
			
		||||
        return new Promise(res => res());
 | 
			
		||||
      })
 | 
			
		||||
      .catch(() => {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user