fix audio card creation for kana-only definitions

This commit is contained in:
Alex Yatskov 2017-06-08 23:04:25 -07:00
parent dd84bd5b3a
commit 72c02c39c7

View File

@ -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}`;