aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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}`;