aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/util.js
diff options
context:
space:
mode:
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}`;