aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/display.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-04-02 12:08:49 -0700
committerAlex Yatskov <alex@foosoft.net>2017-04-02 12:08:49 -0700
commitccb740da58068633a0ef5bd1c26bd4dd10625dce (patch)
tree6e0e90351eb6d0294ffbf27fefbe7fc6d064645b /ext/mixed/js/display.js
parent372cdbf14bd4412c8078e26a6324edd534b6daf4 (diff)
parent9ac55fb5d11e5037e808939598591d55d1368b43 (diff)
Merge branch 'dev'
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r--ext/mixed/js/display.js4
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';
}