diff options
Diffstat (limited to 'ext/bg/js/anki.js')
-rw-r--r-- | ext/bg/js/anki.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/anki.js b/ext/bg/js/anki.js index 0d38837c..55953007 100644 --- a/ext/bg/js/anki.js +++ b/ext/bg/js/anki.js @@ -79,12 +79,12 @@ class AnkiConnect { return await this._invoke('guiBrowse', {query}); } - async storeMediaFile(filename, dataBase64) { + async storeMediaFile(fileName, dataBase64) { if (!this._enabled) { throw new Error('AnkiConnect not enabled'); } await this._checkVersion(); - return await this._invoke('storeMediaFile', {filename, data: dataBase64}); + return await this._invoke('storeMediaFile', {filename: fileName, data: dataBase64}); } async findNoteIds(notes, duplicateScope) { |