diff options
author | Allan Wang <me@allanwang.ca> | 2019-12-30 11:49:32 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-12-30 11:49:32 -0800 |
commit | 2d26966f58b0688f5a489dca5b96bcdd93e1bdc2 (patch) | |
tree | e831a0917298300ee7c7a2d1226616bce32179dd /app/src | |
parent | dd3320efb1de998b8022d341036c79121618bb31 (diff) | |
download | frost-2d26966f58b0688f5a489dca5b96bcdd93e1bdc2.tar.gz frost-2d26966f58b0688f5a489dca5b96bcdd93e1bdc2.tar.bz2 frost-2d26966f58b0688f5a489dca5b96bcdd93e1bdc2.zip |
Allow copying text with emojis, resolves #1530
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/web/ts/context_a.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/web/ts/context_a.ts b/app/src/web/ts/context_a.ts index b9549f3f..9faa1e94 100644 --- a/app/src/web/ts/context_a.ts +++ b/app/src/web/ts/context_a.ts @@ -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 } |