diff --git a/extensions/sound.js b/extensions/sound.js index 0a34b84418..57228fc0b5 100644 --- a/extensions/sound.js +++ b/extensions/sound.js @@ -14,7 +14,7 @@ const xhr = new XMLHttpRequest(); let timeout = setTimeout(() => { xhr.abort(); - throw new Error('Timed out'); + reject(new Error('Timed out')); }, 5000); xhr.onload = () => { clearTimeout(timeout);