From 56e4ab4d39bd90ce3875692da2b642e2775bcd19 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 31 Jan 2024 10:10:05 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E8=87=AA=E5=AE=9A=E4=B9=89=E8=A1=A8?= =?UTF-8?q?=E6=83=85=E4=BD=9C=E4=B8=BA=E6=96=87=E6=A1=A3=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E7=82=B9=E5=87=BB=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=88=87=E6=8D=A2=20emoji=20=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/header/Background.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.ts index 3600e0b0b..bc9e11bc5 100644 --- a/app/src/protyle/header/Background.ts +++ b/app/src/protyle/header/Background.ts @@ -201,7 +201,7 @@ export class Background { while (target && !target.isEqualNode(this.element)) { const type = target.getAttribute("data-type"); - if (target.tagName === "IMG") { + if (target.tagName === "IMG" && target.parentElement.classList.contains("protyle-background__img")) { const imgSrc = target.getAttribute("src"); if (event.detail > 1 && !imgSrc.startsWith("data:image/png;base64")) { previewImage(imgSrc);