mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
eslint: Fix unicorn/prefer-text-content.
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-text-content.md Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
bd05f1c9f8
commit
70a0260ac1
@@ -815,7 +815,7 @@ exports.initialize = function () {
|
||||
// wrong.
|
||||
for (let x = 0; x < this.childNodes.length; x += 1) {
|
||||
if (this.childNodes[x].nodeType !== 3) {
|
||||
this.innerText = this.innerText.replace(/\n/, "");
|
||||
this.textContent = this.textContent.replace(/\n/, "");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user