mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 22:47:04 +01:00
Fix emoji not parsing correctly
This commit is contained in:
parent
0af45c5dca
commit
38ab257d6e
@ -1688,7 +1688,11 @@ var passedCookieTest = true; // If passed cross origin test
|
|||||||
disreact.img_url += ".png";
|
disreact.img_url += ".png";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
disreact.img_url = $(twemoji.parse(emoji.name)).attr("src");
|
try {
|
||||||
|
disreact.img_url = $("<div>" + twemoji.parse(emoji.name) + "</div>").children("img").attr("src");
|
||||||
|
} catch (err) {
|
||||||
|
disreact.img_url = $(twemoji.parse(emoji.name)).attr("src");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
var rendered = Mustache.render(template, disreact);
|
var rendered = Mustache.render(template, disreact);
|
||||||
reacts.push(rendered);
|
reacts.push(rendered);
|
||||||
|
Loading…
Reference in New Issue
Block a user