fix audio card creation for kana-only definitions
This commit is contained in:
parent
dd84bd5b3a
commit
72c02c39c7
@ -108,7 +108,7 @@ function audioBuildUrl(definition, mode, cache={}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function audioBuildFilename(definition) {
|
function audioBuildFilename(definition) {
|
||||||
if (definition.reading && definition.expression) {
|
if (definition.reading || definition.expression) {
|
||||||
let filename = 'yomichan';
|
let filename = 'yomichan';
|
||||||
if (definition.reading) {
|
if (definition.reading) {
|
||||||
filename += `_${definition.reading}`;
|
filename += `_${definition.reading}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user