summaryrefslogtreecommitdiff
path: root/ext/bg/js/anki.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-05-06 19:25:56 -0400
committerGitHub <noreply@github.com>2020-05-06 19:25:56 -0400
commitac2f743b76b92c46624cab87cd0f6630256738e4 (patch)
tree3409dcccc8d6349dee085debb635d0e5de87bc5d /ext/bg/js/anki.js
parenta88501ff1014a70635a9c109939ea53b3046dd9c (diff)
Remove invalid file name characters from Anki media files (#496)
* Replace invalid file name characters * Replace "filename" with "fileName"
Diffstat (limited to 'ext/bg/js/anki.js')
-rw-r--r--ext/bg/js/anki.js4
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) {