aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-06-08 23:04:25 -0700
committerAlex Yatskov <alex@foosoft.net>2017-06-08 23:04:25 -0700
commit72c02c39c71d8e923e9ef54cc42ffaaa1e77b3a2 (patch)
treedbc2d6d36afc7c70901a75ffac485c16c9a9d6b4 /ext/mixed/js/util.js
parentdd84bd5b3a67b8fb62f4f2fc2433a63c6884b2c5 (diff)
fix audio card creation for kana-only definitions
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}`;