1
0
mirror of https://github.com/AllanWang/Frost-for-Facebook.git synced 2024-09-19 23:21:34 +02:00

Allow copying text with emojis, resolves #1530

This commit is contained in:
Allan Wang 2019-12-30 11:49:32 -08:00
parent dd3320efb1
commit 2d26966f58
No known key found for this signature in database
GPG Key ID: C93E3F9C679D7A56

View File

@ -63,7 +63,8 @@
};
const _getImageStyleUrl = (el: Element): string | null => {
const img = el.querySelector("[style*=\"background-image: url(\"]");
// Emojis and special characters may be images from a span
const img = el.querySelector("[style*=\"background-image: url(\"]:not(span)");
if (!img) {
return null
}