mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 14:54:25 +00:00
Fix eslint warnings in about:webrtc.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user