summaryrefslogtreecommitdiff
path: root/ext/js/display/display-generator.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-02-27 14:04:52 -0500
committerGitHub <noreply@github.com>2021-02-27 14:04:52 -0500
commit1a7c2641652d6da3fa01a82091731aded26e0dc9 (patch)
tree9993af1e9e7976a082603feb0ac488aa1c9d2a63 /ext/js/display/display-generator.js
parent9e7a76a1f121ad3622f9efd2867684560a9113db (diff)
Add standalone reading (#1448)
* Add option * Update display * Hide redundant readings * Improve label and description
Diffstat (limited to 'ext/js/display/display-generator.js')
-rw-r--r--ext/js/display/display-generator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/display/display-generator.js b/ext/js/display/display-generator.js
index b904c16e..221cb772 100644
--- a/ext/js/display/display-generator.js
+++ b/ext/js/display/display-generator.js
@@ -243,7 +243,7 @@ class DisplayGenerator {
node.dataset.readingIsSame = `${!reading || reading === expression}`;
node.dataset.frequency = termFrequency;
- expressionContainer.lang = 'ja';
+ this._setTextContent(node.querySelector('.term-expression-reading'), reading.length > 0 ? reading : expression);
this._appendFurigana(expressionContainer, furiganaSegments, this._appendKanjiLinks.bind(this));
this._appendMultiple(tagContainer, this._createTag.bind(this), termTags);