summaryrefslogtreecommitdiff
path: root/ext/mixed/js/display-notification.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-01-09 16:02:03 -0500
committerGitHub <noreply@github.com>2021-01-09 16:02:03 -0500
commit5b58a9aeef66194bc51fe25f66aebf95f673089a (patch)
treeadf2381475c6f9ad1b502e49e403a7e361184321 /ext/mixed/js/display-notification.js
parent06d23f59d83ef89ebda89db547195ecf2a1c6ebf (diff)
Update term tags display and fix a layout issue (#1208)
* Fix layout issue with term expression display * Update display of term tags * Update tag notification to include disambiguation information
Diffstat (limited to 'ext/mixed/js/display-notification.js')
-rw-r--r--ext/mixed/js/display-notification.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/mixed/js/display-notification.js b/ext/mixed/js/display-notification.js
index 0e79f1c6..8b6325d0 100644
--- a/ext/mixed/js/display-notification.js
+++ b/ext/mixed/js/display-notification.js
@@ -58,8 +58,13 @@ class DisplayNotification {
}
}
- setContent(text) {
- this._body.textContent = text;
+ setContent(value) {
+ if (typeof value === 'string') {
+ this._body.textContent = value;
+ } else {
+ this._body.textContent = '';
+ this._body.appendChild(value);
+ }
}
isClosing() {