diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2022-08-20 12:53:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-20 12:53:22 -0400 |
commit | d3807d88ecf40b2c37ed31d823af038a091ffca0 (patch) | |
tree | cc79293c901c3274beecce0e9f5e9f35efcb9ec8 /ext/js/background | |
parent | cd0a6b60e2f910e497a5b72bee1a27a0d1c575d2 (diff) |
ArrayBufferUtil (#2215)
* Rename StringUtil to ArrayBufferUtil
* Update docs
* Rename file string-util.js to array-buffer-util.js
Diffstat (limited to 'ext/js/background')
-rw-r--r-- | ext/js/background/backend.js | 4 |
1 files changed, 2 insertions, 2 deletions
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; |