summaryrefslogtreecommitdiff
path: root/ext/js/media
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2022-08-20 12:53:22 -0400
committerGitHub <noreply@github.com>2022-08-20 12:53:22 -0400
commitd3807d88ecf40b2c37ed31d823af038a091ffca0 (patch)
treecc79293c901c3274beecce0e9f5e9f35efcb9ec8 /ext/js/media
parentcd0a6b60e2f910e497a5b72bee1a27a0d1c575d2 (diff)
ArrayBufferUtil (#2215)
* Rename StringUtil to ArrayBufferUtil * Update docs * Rename file string-util.js to array-buffer-util.js
Diffstat (limited to 'ext/js/media')
-rw-r--r--ext/js/media/audio-downloader.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/media/audio-downloader.js b/ext/js/media/audio-downloader.js
index 4142e3f4..77e9afd2 100644
--- a/ext/js/media/audio-downloader.js
+++ b/ext/js/media/audio-downloader.js
@@ -16,11 +16,11 @@
*/
/* global
+ * ArrayBufferUtil
* JsonSchema
* NativeSimpleDOMParser
* RequestBuilder
* SimpleDOMParser
- * StringUtil
*/
class AudioDownloader {
@@ -283,7 +283,7 @@ class AudioDownloader {
throw new Error('Could not retrieve audio');
}
- const data = StringUtil.arrayBufferToBase64(arrayBuffer);
+ const data = ArrayBufferUtil.arrayBufferToBase64(arrayBuffer);
const contentType = response.headers.get('Content-Type');
return {data, contentType};
}