aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-05-16 15:52:39 -0400
committerGitHub <noreply@github.com>2021-05-16 15:52:39 -0400
commit39cabc4db61047923712edcca6bedfd001d5d151 (patch)
tree9b3732cc2c2b6459db015622f7b2169e59b2363c
parent66d048832f2dc30e11e6be4c68beab23c7d8adef (diff)
Add support for custom text type generation (#1683)
-rw-r--r--ext/js/display/display-generator.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/js/display/display-generator.js b/ext/js/display/display-generator.js
index eb9c122d..7a291e3b 100644
--- a/ext/js/display/display-generator.js
+++ b/ext/js/display/display-generator.js
@@ -293,6 +293,8 @@ class DisplayGenerator {
return this._createTermDefinitionEntryText(entry);
} else if (typeof entry === 'object' && entry !== null) {
switch (entry.type) {
+ case 'text':
+ return this._createTermDefinitionEntryText(entry.text);
case 'image':
return this._createTermDefinitionEntryImage(entry, dictionary);
}