summaryrefslogtreecommitdiff
path: root/ext/mixed/js/display-notification.js
diff options
context:
space:
mode:
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() {