From d3807d88ecf40b2c37ed31d823af038a091ffca0 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 20 Aug 2022 12:53:22 -0400 Subject: ArrayBufferUtil (#2215) * Rename StringUtil to ArrayBufferUtil * Update docs * Rename file string-util.js to array-buffer-util.js --- ext/js/media/audio-downloader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/js/media') 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}; } -- cgit v1.2.3