summaryrefslogtreecommitdiffstats
path: root/toolkit/content/aboutwebrtc
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-08-13 23:48:38 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-02-07 09:35:54 +0100
commitb2314b1ee9ba5d32123132ad0002e90aca821c29 (patch)
treee73e3cfe842aa5170dba28a5f71cb8502388d973 /toolkit/content/aboutwebrtc
parentf017b749ea9f1586d2308504553d40bf4cc5439d (diff)
downloadUXP-b2314b1ee9ba5d32123132ad0002e90aca821c29.tar
UXP-b2314b1ee9ba5d32123132ad0002e90aca821c29.tar.gz
UXP-b2314b1ee9ba5d32123132ad0002e90aca821c29.tar.lz
UXP-b2314b1ee9ba5d32123132ad0002e90aca821c29.tar.xz
UXP-b2314b1ee9ba5d32123132ad0002e90aca821c29.zip
Fix eslint warnings in about:webrtc.
Diffstat (limited to 'toolkit/content/aboutwebrtc')
-rw-r--r--toolkit/content/aboutwebrtc/aboutWebrtc.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/toolkit/content/aboutwebrtc/aboutWebrtc.js b/toolkit/content/aboutwebrtc/aboutWebrtc.js
index 5c366eeb5..f494c7b4d 100644
--- a/toolkit/content/aboutwebrtc/aboutWebrtc.js
+++ b/toolkit/content/aboutwebrtc/aboutWebrtc.js
@@ -141,11 +141,13 @@ Control.prototype = {
update: function() {
this.ctrl.textContent = this._label;
+ this.msg.textContent = "";
if (this._message) {
- this.msg.innerHTML =
- `<span class="info-label">${this._messageHeader}:</span> ${this._message}`;
- } else {
- this.msg.innerHTML = null;
+ this.msg.appendChild(Object.assign(document.createElement("span"), {
+ className: "info-label",
+ textContent: `${this._messageHeader}: `,
+ }));
+ this.msg.appendChild(document.createTextNode(this._message));
}
},
@@ -308,7 +310,7 @@ var AboutWebRTC = {
msg.textContent = getString("cannot_retrieve_log");
parent.appendChild(msg);
msg = document.createElement("p");
- msg.innerHTML = `${data.error.name}: ${data.error.message}`;
+ msg.textContent = `${data.error.name}: ${data.error.message}`;
parent.appendChild(msg);
return;
}