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/display/display-content-manager.js | |
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/display/display-content-manager.js')
-rw-r--r-- | ext/js/display/display-content-manager.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/display/display-content-manager.js b/ext/js/display/display-content-manager.js index 0b91b40c..bfba5fb8 100644 --- a/ext/js/display/display-content-manager.js +++ b/ext/js/display/display-content-manager.js @@ -16,7 +16,7 @@ */ /* global - * StringUtil + * ArrayBufferUtil */ /** @@ -139,7 +139,7 @@ class DisplayContentManager { const token = this._token; const data = (await yomichan.api.getMedia([{path, dictionary}]))[0]; if (token === this._token && data !== null) { - const buffer = StringUtil.base64ToArrayBuffer(data.content); + const buffer = ArrayBufferUtil.base64ToArrayBuffer(data.content); const blob = new Blob([buffer], {type: data.mediaType}); const url = URL.createObjectURL(blob); cachedData.data = data; |