diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-04-02 12:08:15 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-04-02 12:08:15 -0700 |
commit | 9ac55fb5d11e5037e808939598591d55d1368b43 (patch) | |
tree | 8cd4d6452f83c279f1ecb23a1fce9039f40a09ef /ext/mixed/js/display.js | |
parent | 4eb3e2f06cd83ef0721557f8559fc0a6d70ad4f5 (diff) |
support for multiple audio sources, version bump1.1.11
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r-- | ext/mixed/js/display.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index 36609525..f5ad4849 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -69,7 +69,7 @@ class Display { definitions, addable: options.anki.enable, grouped: options.general.groupResults, - playback: options.general.audioPlayback + playback: options.general.audioSource !== 'disabled' }; if (context) { @@ -335,7 +335,7 @@ class Display { this.audioCache[key].pause(); } - audioBuildUrl(definition, this.responseCache).then(url => { + audioBuildUrl(definition, this.options.general.audioSource, this.responseCache).then(url => { if (!url) { url = '/mixed/mp3/button.mp3'; } |