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:
parent
dd3320efb1
commit
2d26966f58
@ -63,7 +63,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const _getImageStyleUrl = (el: Element): string | null => {
|
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) {
|
if (!img) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user