зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1372509: Fix eslint warnings in about:webrtc. r=jesup
This commit is contained in:
Родитель
8d659cbd93
Коммит
1630af9168
|
@ -139,12 +139,13 @@ Control.prototype = {
|
||||||
update() {
|
update() {
|
||||||
this.ctrl.textContent = this._label;
|
this.ctrl.textContent = this._label;
|
||||||
|
|
||||||
|
this.msg.textContent = "";
|
||||||
if (this._message) {
|
if (this._message) {
|
||||||
// eslint-disable-next-line no-unsanitized/property
|
this.msg.appendChild(Object.assign(document.createElement("span"), {
|
||||||
this.msg.innerHTML =
|
className: "info-label",
|
||||||
`<span class="info-label">${this._messageHeader}:</span> ${this._message}`;
|
textContent: `${this._messageHeader}: `,
|
||||||
} else {
|
}));
|
||||||
this.msg.innerHTML = null;
|
this.msg.appendChild(document.createTextNode(this._message));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -306,8 +307,7 @@ var AboutWebRTC = {
|
||||||
msg.textContent = getString("cannot_retrieve_log");
|
msg.textContent = getString("cannot_retrieve_log");
|
||||||
parent.appendChild(msg);
|
parent.appendChild(msg);
|
||||||
msg = document.createElement("p");
|
msg = document.createElement("p");
|
||||||
// eslint-disable-next-line no-unsanitized/property
|
msg.textContent = `${data.error.name}: ${data.error.message}`;
|
||||||
msg.innerHTML = `${data.error.name}: ${data.error.message}`;
|
|
||||||
parent.appendChild(msg);
|
parent.appendChild(msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче