summaryrefslogtreecommitdiff
path: root/ext/js/display/display.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-02-15 20:47:35 -0500
committerGitHub <noreply@github.com>2021-02-15 20:47:35 -0500
commitf2a387237bac02d93d1664ed7acb6a10108915b6 (patch)
tree17db44dea4a4d14ceafd73e608fd53367b0189fe /ext/js/display/display.js
parent7027d537a914cbd5a2f8aa6accf221efeed4af0d (diff)
Update audio downloading to support specifying an exact array index (#1405)
Diffstat (limited to 'ext/js/display/display.js')
-rw-r--r--ext/js/display/display.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index a7c45f19..6a2a3766 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -1487,7 +1487,7 @@ class Display extends EventDispatcher {
const timestamp = Date.now();
const definitionDetails = this._getDefinitionDetailsForNote(definition);
- const audioDetails = (mode !== 'kanji' && this._ankiNoteBuilder.containsMarker(fields, 'audio') ? {sources, customSourceUrl, customSourceType} : null);
+ const audioDetails = (mode !== 'kanji' && this._ankiNoteBuilder.containsMarker(fields, 'audio') ? {sources, preferredAudioIndex: null, customSourceUrl, customSourceType} : null);
const screenshotDetails = (this._ankiNoteBuilder.containsMarker(fields, 'screenshot') ? {tabId: this._contentOriginTabId, frameId: this._contentOriginFrameId, format, quality} : null);
const clipboardDetails = {
image: this._ankiNoteBuilder.containsMarker(fields, 'clipboard-image'),