mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 11:35:13 +00:00
Fix emoji rewrite adding unnecessary curft to the DOM for most emoji (#33818)
This commit is contained in:
parent
b9f10c70b3
commit
5ddbf42dae
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ const emojifyTextNode = (node, customEmojis) => {
|
|||
};
|
||||
|
||||
const emojifyNode = (node, customEmojis) => {
|
||||
for (const child of node.childNodes) {
|
||||
for (const child of Array.from(node.childNodes)) {
|
||||
switch(child.nodeType) {
|
||||
case Node.TEXT_NODE:
|
||||
emojifyTextNode(child, customEmojis);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue