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);