mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-12 17:11:20 +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";
|
||||
}
|
||||
} 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);
|
||||
reacts.push(rendered);
|
||||
|
Loading…
Reference in New Issue
Block a user