Bug 1372509: Fix eslint warnings in about:webrtc. r=jesup

This commit is contained in:
Jan-Ivar Bruaroey 2017-07-11 16:27:47 -04:00
Родитель 8d659cbd93
Коммит 1630af9168
1 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -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;
} }