From 72c02c39c71d8e923e9ef54cc42ffaaa1e77b3a2 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Thu, 8 Jun 2017 23:04:25 -0700 Subject: fix audio card creation for kana-only definitions --- ext/mixed/js/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mixed/js') 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}`; -- cgit v1.2.3