summaryrefslogtreecommitdiff
path: root/ext/mixed/js/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-06-26 20:23:53 -0700
committerAlex Yatskov <alex@foosoft.net>2017-06-26 20:23:53 -0700
commitc23298dbb2f3f26ff96da80f69d70051cc14f733 (patch)
treeda544b095a4665655013bccd115b9efad5c8a7e1 /ext/mixed/js/util.js
parent16baf9a400ac11a1c4f53ba6665db03a900511e0 (diff)
parent21b29ff135269fe33f5ae064abc74cfde6f2a5f5 (diff)
Merge branch 'master' into firefox-amo
Diffstat (limited to 'ext/mixed/js/util.js')
-rw-r--r--ext/mixed/js/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mixed/js/util.js b/ext/mixed/js/util.js
index 62838674..5cf62000 100644
--- a/ext/mixed/js/util.js
+++ b/ext/mixed/js/util.js
@@ -108,7 +108,7 @@ function audioBuildUrl(definition, mode, cache={}) {
}
function audioBuildFilename(definition) {
- if (definition.reading && definition.expression) {
+ if (definition.reading || definition.expression) {
let filename = 'yomichan';
if (definition.reading) {
filename += `_${definition.reading}`;