diff options
Diffstat (limited to 'ext/js/background/offscreen-proxy.js')
-rw-r--r-- | ext/js/background/offscreen-proxy.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/js/background/offscreen-proxy.js b/ext/js/background/offscreen-proxy.js index 8c3f63c9..2351cb96 100644 --- a/ext/js/background/offscreen-proxy.js +++ b/ext/js/background/offscreen-proxy.js @@ -144,8 +144,7 @@ export class DictionaryDatabaseProxy { */ async getMedia(targets) { const serializedMedia = /** @type {import('dictionary-database').Media<string>[]} */ (await this._offscreen.sendMessagePromise({action: 'databaseGetMediaOffscreen', params: {targets}})); - const media = serializedMedia.map((m) => ({...m, content: base64ToArrayBuffer(m.content)})); - return media; + return serializedMedia.map((m) => ({...m, content: base64ToArrayBuffer(m.content)})); } } |