aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/src/web/ts/context_a.ts3
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
}