mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Fix eslint warnings in about:webrtc.
This commit is contained in:
parent
b92f437264
commit
c202fc4bf4
1 changed files with 7 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue