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/background/backend.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/js/background') diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index f3c76311..a3694dd3 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -19,6 +19,7 @@ * AccessibilityController * AnkiConnect * AnkiUtil + * ArrayBufferUtil * AudioDownloader * ClipboardMonitor * ClipboardReader @@ -33,7 +34,6 @@ * ProfileConditionsUtil * RequestBuilder * ScriptManager - * StringUtil * Translator * wanakana */ @@ -2223,7 +2223,7 @@ class Backend { for (const item of results) { const {content} = item; if (content instanceof ArrayBuffer) { - item.content = StringUtil.arrayBufferToBase64(content); + item.content = ArrayBufferUtil.arrayBufferToBase64(content); } } return results; -- cgit v1.2.3