diff options
Diffstat (limited to 'ext/bg/js/audio-downloader.js')
-rw-r--r-- | ext/bg/js/audio-downloader.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/bg/js/audio-downloader.js b/ext/bg/js/audio-downloader.js index 62abda8f..25c25250 100644 --- a/ext/bg/js/audio-downloader.js +++ b/ext/bg/js/audio-downloader.js @@ -252,7 +252,9 @@ class AudioDownloader { throw new Error('Could not retrieve audio'); } - return this._arrayBufferToBase64(arrayBuffer); + const data = this._arrayBufferToBase64(arrayBuffer); + const contentType = response.headers.get('Content-Type'); + return {data, contentType}; } async _isAudioBinaryValid(arrayBuffer, source) { |