diff --git a/src/helpers/playPop.ts b/src/helpers/playPop.ts index 91b951e7f..b16cf68bb 100644 --- a/src/helpers/playPop.ts +++ b/src/helpers/playPop.ts @@ -3,6 +3,10 @@ import popSoundFile from '@/assets/audio/pop.mp3' export const playSoundWhenDoneKey = 'playSoundWhenTaskDone' export function playPopSound() { - const popSound = new Audio(popSoundFile) - popSound.play() + try { + const popSound = new Audio(popSoundFile) + popSound.play() + } catch (e) { + console.error('Could not play pop sound:', e) + } }