mirror of
https://github.com/AllanWang/Frost-for-Facebook.git
synced 2024-11-08 20:12:39 +01:00
Allow copying text with emojis, resolves #1530
This commit is contained in:
parent
dd3320efb1
commit
2d26966f58
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user